Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual List - add 'scroll to top' button #39

Closed
jakobz opened this issue May 26, 2021 · 1 comment
Closed

Virtual List - add 'scroll to top' button #39

jakobz opened this issue May 26, 2021 · 1 comment
Labels
feature New feature or request

Comments

@jakobz
Copy link
Contributor

jakobz commented May 26, 2021

Description

It would be handy to have an Scroll-to-top button in Tables (and, probably, in other VirtualList-based components developed in projects).

Describe the solution you'd like

We need design for it. Something like and semi-transparent arrow at the bottom-left of the scrollable area.

Technically, it can be made like this:

  • add 'renderScrollToTop' prop in the VirtualList. It can omit bothering about position. Just render anything passed inside VirtualLists's absolute positioning container.
  • add 'ScrollToTopButton' component(s) in skin(s).
  • add 'showScrollToTop' prop to the DataTable. It can be enabled by default. If passed, it would render the ScrollToTopButton from the skin.
@jakobz jakobz added the feature New feature or request label May 26, 2021
@jakobz jakobz assigned jakobz and unassigned jakobz May 26, 2021
@rayetzki rayetzki self-assigned this Oct 28, 2021
@AlekseyManetov
Copy link
Collaborator

AlekseyManetov commented Apr 29, 2022

We add indexToScroll property in useVirtualList. It probably don't need to make any renderScrollToTop inside VirtualList, because it can be implemented by each UUI user manually according the project specific design.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Archived in project
Development

No branches or pull requests

3 participants