packages/eui/packages/components/eui-table/services/eui-table-sort.service.ts
Service to manage the sorting state of columns in a table.
Uses a BehaviorSubject
to store and emit the current sorting values.
Properties |
|
Methods |
addMultisortParam | ||||||||
addMultisortParam(column: MultisortParam)
|
||||||||
Add a column to the sorting.
Parameters :
Returns :
void
|
setMultiSortColumns | ||||||||
setMultiSortColumns(multisortParams: MultisortParam[])
|
||||||||
Sets the ordering on multiple columns.
Parameters :
Returns :
void
|
setSort | ||||||||||||
setSort(sort: string | null, order: "asc" | "desc" | null)
|
||||||||||||
Sets the ordering order for a given column
Parameters :
Returns :
void
|
toFormGroup | ||||||||
toFormGroup(params: MultisortParam[])
|
||||||||
Add a new select to the form displayed in the dropdown to configure the sorting.
Parameters :
Returns :
FormArray
The form group with the selects. |
Public multisortParamsChange$ |
Default value : new BehaviorSubject([])
|
Public multisortParamsSort$ |
Default value : new BehaviorSubject([])
|
Public sortingParams$ |
Default value : new BehaviorSubject({ sort: null, order: 'desc' })
|
BehaviorSubject containing the current sorting information. |