remove()
unselects a previously selected item
remove(id?: string | number): boolean;
Parameters:
id: string | number
- optional, the id of an item
Returns:
true
if an item is unselected; otherwise, false
.
Example
component.selection.remove("1"); // -> true