on()
Handles events from all list item views.
on(
eventName: string,
handler: string | ViewBuilderEventHandler<UIListView>,
): this;
Notes
- This method can be used to handle events before they’re propagated from list item views to the list view itself. It works in the same manner as UIElement.ElementBuilder.on() for UI elements.
Parameters
- eventName — The name of the event to handle
- handler — The function to call, or name of the event to emit instead
Return value
The builder instance for chaining.
Related
class ListBuilder static
A builder class for creatingUIListViewinstances.on()
Adds an event handler to all instances of the UI element.
