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