class ItemControllerView
A view that’s created automatically for each list item by UIListView.
class ItemControllerView<TItem> extends Widget;
Notes
- This view re-emits events with a
listViewItemproperty (making it possible to type the event asUIListViewEvent<TItem>). - The item property refers to the list item object (which can be used to refer to the list item data with bindings).
- The getListItemView() method returns the current view, i.e. the view body.
Constructor
new UIListView.ItemControllerView()
Creates a new item controller view object.
Instance members
getListItemView()
Returns the current view, i.e. the view body.item readonly
The encapsulated list (or array) item.
Inherited members
body() protected
The encapsulated view object, an attached view.findViewContent()
Searches the view hierarchy for view objects of the provided type.requestFocus()
Requests input focus on the contained view object.delegate()
Delegates incoming events to methods of this object, notably from the attached view body.beforeRender() protected
A method that’s called before the view is rendered, to be overridden if needed.render()
Creates and renders the encapsulated view body, if any.emit()
Emits an event, immediately calling all event handlers.emitChange()
Emits a change event.listen()
Adds a handler for all events emitted by this object.listenOnce()
Returns a promise for a single event with the provided name.listenAsync()
Adds a handler for all events emitted by this object, and returns an async iterable.observe()
Observes a property, a bound property from an attached parent, or an observable object.observeAsync()
Observes one or more targets asynchronously, batching or debouncing/throttling updates.attach() protected
Attaches the specified observable object to this object.isUnlinked()
Returns true if the object has been unlinked.unlink()
Unlinks this observable object.beforeUnlink() protected
A method that’s called immediately before unlinking an object, can be overridden.
Related
class UIListView
A view wrapper that manages nested views for each item in a list.class UIListView
A view wrapper that manages nested views for each item in a list.
