class ListBuilder
A builder class for creating
UIListViewinstances.
class ListBuilder implements ViewBuilder<UIListView>;
Notes
- Objects of this type are returned by the
UI.List()function.
Instance members
initializer readonly
The initializer that is used to create each list view instance.build()
Creates a new instance of the UI list view.on()
Handles events from all list item views.items()
Sets the list of items to be displayed.with()
Defines the view to be rendered for each item in the list.outer()
Defines the outer container for the list items.emptyState()
Defines an ‘empty state’ view to be shown when the list is empty.appendSpacer()
Sets whether a spacer (and a divider, if any) should be added after the last list item view.bounds()
Sets the display bounds for the list (e.g., for pagination).renderOptions()
Sets the rendering options for the list, using UIListView.renderOptions.onListItemsChange()
Handles theListItemsChangeevent.effect()
Applies a render effect to the list container.
Related
class UIListView
A view wrapper that manages nested views for each item in a list.
