class ItemControllerView
A view that’s created automatically for each list item by UIListView.
static
class ItemControllerView<TItem> extends ViewComposite
Constructor
- constructor(item)Creates a new item controller view object.
Instance Members
- item readonlyThe encapsulated list (or array) item.
- delegateViewEvent(event) protectedImplementation of ViewComposite.delegateViewEvent, emits events with the
delegate
property set to this object.
Inherited Members
- bodyThe encapsulated view object.
- createView() protectedCreates the encapsulated view object, to be overridden if needed.
- beforeRender() protectedA method that’s called before the view is rendered, to be overridden if needed.
- findViewContent(type)Searches the view hierarchy for view objects of the provided type.
- requestFocus()Requests input focus on the contained view object.
- render(callback?)Renders the current view, if any.
- applyViewPreset(preset)Applies the provided preset properties to this object.
- emit(event)Emits an event, immediately calling all event handlers.
- emitChange(name?, data?)Emits a change event, an instance of ManagedChangeEvent.
- listen(handler)Adds a handler for all events emitted by this object.
- isUnlinked()Returns true if the object has been unlinked.
- unlink()Unlinks this managed object.
- beforeUnlink() protectedA method that’s called immediately before unlinking an object, can be overridden.
- attach(target, observer?) protectedAttaches the provided managed object to this object.
- autoAttach(propertyName, observer?) protectedObserves a property, so that any object assigned to it is attached immediately.
Related
- class UIListViewA view composite that manages views for each item in a list of objects or values.
- class UIListViewA view composite that manages views for each item in a list of objects or values.