setValue()
defines the state of the option's elements
setValue(value: {[id: string]: boolean }): void;
Parameters:
value: object
- the value to be set. The object contains a set of key:value pairs where key is the id of a toggle and value is the state of the toggle
Example
form.getItem("ToggleGroup").setValue({
"toggle1": true,
"toggle2": false,
"toggle3": true
});