Type class
A named set of setting values, such as "hover", that an element takes on when the state is applied.
Click here for more info
Sources
This information about State is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
State does not extend any other symbol.
State is not extended by any other symbol.
Settings
State does not have any settings.
Private settings
State does not have any private settings.
Properties
State does not have any properties.
Methods
|
apply() |
Returns Applies the state to its element at once, without animation. The values the element had before are kept in its |
|---|---|
|
applyAnimate( duration?: ) |
Returns Applies the state to its element, animating each setting to its new value. Returns the |
|
constructor( entity: ) |
Returns |
|
get( key: ) |
Returns Returns the state's value for setting Click here for more info |
|
remove( key: ) |
Returns Removes setting Click here for more info |
|
set( key: ) |
Returns Sets the value setting |
|
setAll( settings: ) |
Returns Sets several of the state's settings at once, from an object of key-value pairs. Click here for more info |
Events
State does not have any events.