add()
selects a specified item
add(id: string | number): void;
Parameters:
id: string | number
- the id of an item
Example
const id = component.selection.getId(); // -> "2"
component.selection.add("2");
selects a specified item
id: string | number
- the id of an itemExample
const id = component.selection.getId(); // -> "2"
component.selection.add("2");