setState()
sets values/states of controls
setState(state: object): 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
toolbar.setState({
"search": "Hello",
"edit": true,
"align": "right"
});
Related sample: Toolbar. Set state