angularjs ui-scroll get all visible rows

238 Views Asked by At

Currently I am using angular-ui/ui-scroll to populate the list of items in the table.

Is there a way I can get the list of all visible items that are being rendered in the ui using ui-scroll?

I was using adapter.topVisible and adapter.bottomVisible to get the top visible item and bottom visible item. But not sure about getting all the items in between them

1

There are 1 best solutions below

6
On BEST ANSWER

Get the indexOf the top item and get the indexOf bottom item, and then that should give you all the visible item indexes (between top and bottom).