DkGridSelection
You can access this instance through the property named selection of the DkGridComponent.
Generics
<T> represents the object's shape coming from the data source.
Properties
selectableRows
It gets or sets the function to define the selectable rows.
Type: SelectableFn<T>.
Methods
selectOne()
It marks the given row as selected.
Params:
row:
DkGridDataRowEntry<T>.
Return: void.
select()
It marks the given rows as selected.
Params:
rows:
DkGridDataRowEntry<T>[].
Return: void.
deselectOne()
It unchecks the given row as selected.
Params:
row:
DkGridDataRowEntry<T>.
Return: void.
deselect()
It unchecks the given rows as selected.
Params:
rows:
DkGridDataRowEntry<T>[].
Return: void.
getSelectedRows()
It returns all the selected rows.
Params: None.
Return: DkGridDataRowEntry<T>[].
getSelectedEntries()
It returns all the selected entries without the DkGridDataRowEntry wrapper.
Params: None.
Return: T[].
selectAll()
It marks all the selectable rows coming from the data source.
Params: None.
Return: void.
deselectAll()
It unchecks all the selected rows.
Params: None.
Return: void.
Events
selectedRowChange
It emits the selected row.
Params: None.
Return: Observable<DkGridDataRowEntry<T>>.
deselectedRowChange
It emits the deselected row.
Params: None.
Return: Observable<DkGridDataRowEntry<T>>.
selectionChange
It emits all the selected rows.
Params: None.
Return: Observable<DkGridDataRowEntry<T>[]>.
Last updated