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 |
Accessors |
| setSort | ||||||||||||||||
setSort(sort: string, order: SortOrder, isMultiSortable: boolean)
|
||||||||||||||||
|
Sets the ordering order for a given column
Parameters :
Returns :
void
|
| setSorts | ||||||||
setSorts(sorts: Sort[])
|
||||||||
|
Sets the full list of sorting values.
Parameters :
Returns :
void
|
| Public sorts$ |
Type : unknown
|
Default value : new BehaviorSubject<Sort[]>([])
|
|
BehaviorSubject containing the current sorting information. |
| sorts |
getsorts()
|
|
Observable stream of sorting values.
Returns :
Observable<Sort[]>
|