Skip to content

How to get first and last visible item in the virtual list #423

Open
@slidenerd

Description

@slidenerd
  • Currently there seems to be no way to do this
  • The Scroll event simply returns a range that includes buffered items as well
  • We have a getOffset() method
  • There s no method to get the sizes of all items so that you can do some math (I have a dynamic item height list where each item may have a different size)
  • One way i can think of is to assign an id to each of the rendered items or assign a ref to all of them and then compare their top with current offset, is there a better way?
  • Any one mind sharing some ideas or suggestions on how to achieve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions