Skip to main content

getState()

gets current values/states of controls

getState(): IState;

Returns:

An object with IDs of controls and their values/states.

Example

var state = ribbon.getState(); // -> {"search":"Hello","edit":true,"align":"right"}

Related sample: Ribbon. Get State