The event name.
The parameters that will be passed to event listeners.
Get the index of the first visible element, which can be used to restore scrolling position by setStartIndex
.
May cause page reflow.
Get currently rendered item in index.
Get startIndex
for the start index of current rendered items.
Check whether listener
is in the list for listening specified event name
.
The event name.
The event listener to check.
The scope binded to listener. If provided, will additionally check whether the scope match.
Check whether any listener
is listening specified event name
.
The event name.
When async items added at index, we need to adjust scrolling position and data count immediately, and may add null item as placeholders for the added items. Such that you will feel no delay after the add or delete operation. After data loaded, new render result should be the same.
Removes the listener
that is listening specified event name
.
The event name.
The event listener, only matched listener will be removed.
The scope binded to listener. If provided, remove listener only when scope match.
Registers an event listener
to listen event with specified name
.
The event name.
The event listener.
The scope will be binded to listener.
Registers an event listener
to listen event with specified name
, triggers for only once.
The event name.
The event listener.
The scope will be binded to listener.
When data ordering changed and you want to keep scroll position, e.g., after sorting by columns.
Removes all the event listeners.
When data changed completely and you want to move to start scroll position, e.g., after data type changed.
Specified the start index you want to set by setStartIndex
.
Adjust startIndex
and scroll position to make item in the specified index becomes visible if it's not.
Set startIndex
, and the item in which index will be at the top start position of the viewport.
Resolved until liveDataRendered
triggered with fresh data.
Resolved until liveDataUpdated
triggered with fresh data.
Resolved until liveDataRendered
triggered.
Resolved until liveDataUpdated
triggered.
Generated using TypeDoc
Emit specified event with event
name
and parameters.