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

Property
Description

selectableRows

It gets or sets the function to define the selectable rows.

Type: SelectableFn<T>.

Methods

Method
Description

selectOne()

It marks the given row as selected.

Params:

  1. row: DkGridDataRowEntry<T>.

Return: void.

select()

It marks the given rows as selected.

Params:

  1. rows: DkGridDataRowEntry<T>[].

Return: void.

deselectOne()

It unchecks the given row as selected.

Params:

  1. row: DkGridDataRowEntry<T>.

Return: void.

deselect()

It unchecks the given rows as selected.

Params:

  1. 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

Event
Description

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