packages/eui/packages/components/eui-table-v2/services/eui-table-v2-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$ |
Default value : new BehaviorSubject<Sort[]>([])
|
BehaviorSubject containing the current sorting information. |
sorts |
getsorts()
|
Observable stream of sorting values.
Returns :
Observable<Sort[]>
|