States
Type class
The State objects of an element, by name, such as "hover" or "hidden".
More info: Element states
Sources
This information about States is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
States does not extend any other symbol.
States is not extended by any other symbol.
Properties
States does not have any properties.
Methods
apply(newState:string)Returns
voidApplies the state called
newStateto the element at once, without animation.applyAnimate(newState:string,
duration?:undefined|number)Returns
Animations|undefinedApplies the state called
newStateto the element, animating each setting to its new value. Returns theAnimationobjects, by setting key, orundefinedif there is no such state.constructor(entity:E)Returns
Statescreate(name:string,
settings:Partial)Returns
StateCreates the state called
namewithsettings, or addssettingsto it if it already exists.lookup(name:string)Returns
State|undefinedReturns the state called
name, orundefinedif there is none.remove(name:string)Returns
voidRemoves the state called
name.
Events
States does not have any events.