Renderers <[ States ]> Table of contents
ComponentStates class - Ui component global and additional states handler.
class ComponentStates {
constructor( component, states = null ) {}
global : null|String
exposed : Object
extend( states ) {} // void
is( name ) {} // boolean
has( name ) {} // boolean
get( name ) {} // Object
set( name ) {} // void
unset( name ) {} // void
}
For more details check the ComponentStates source file.
Note: All events are dispatched on the component reference.
- state.set - Fired when a non global state is set.
- state.changed - Fired when the global state changed.
- state.unset - Fired when a global or non global state is unset.
ElementClassStates class - Loose element class states with callbacks and relations.
class ElementClassStates {
constructor( states = null ) {}
exposed : Object
extend( states ) {} // void
is( name, element ) {} // boolean
has( name ) {} // boolean
get( name ) {} // Object
set( name, element ) {} // void
unset( name, element ) {} // void
}
For more details check the ElementClassStates source file.
Renderers <[ States ]> Table of contents