Skip to main content

setState()

sets values/states of controls

setState(state: IState): void;

Parameters:

state: object - a hash of key:value pairs, where the key is the ID of a control and the value is a new value/state of the control

Example

ribbon.setState({    "search": "Hello",    "edit": true,    "align": "right"});

Related sample: Ribbon. Set State