setValue()
selects option(s) in ComboBox
setValue(ids: Id | Id[] ): void;
Parameters:
ids: number | string | array
- the ids of items from data collection that should be selected in Combo Box
Example
// selects one option
combo.setValue(combo.data.getId(1));
// selects several options at once
combo.setValue([combo.data.getId(1), combo.data.getId(3)]);
Related sample: Combobox. Set Value