setState

sets values/states of controls

void setState(object state);

Parameters

stateobjecta 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 samples

See also
Back to top