Skip to main content

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
note

The method can be used in the DataView, List, Tree components.

Starting from v7.0, the method unselects all previously selected items when calling without parameters:

component.selection.remove();