class UIConditionalView
A view composite that automatically creates and unlinks the contained view.
class UIConditionalView extends ViewComposite
Description
A conditional component creates and renders its contained content based on the value of the state property.
Constructor
- constructor()Creates a new instance of this view composite.
Instance Members
- applyViewPreset(preset)Applies the provided preset properties to this object.
- stateThe current state of this conditional view.
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.
- delegateViewEvent(event) protectedDelegates events from the current view.
- render(callback?)Renders the current view, if any.
- 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.