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 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.
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.
Removes all the event listeners.
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.
Generated using TypeDoc
Emit specified event with event
name
and parameters.