packages/ecl/components/ecl-table/ecl-table-sort-button.component.ts
Sort button component used inside sortable table headers.
Applies ECL styling for table sort arrows and provides accessibility label for screen readers.
| selector | button[eclTableSortButton] |
| imports |
EUI_ECL_ICON
AsyncPipe
|
| templateUrl | ./ecl-table-sort-button.component.html |
Properties |
Methods |
Inputs |
HostBindings |
Accessors |
| class |
Type : string
|
| e2eAttr |
Type : any
|
| tabindex |
Type : number
|
| attr.aria-label |
Type : string
|
Default value : 'Sort table'
|
|
Accessibility label describing the button's function.
This value is bound to the |
| class |
Type : string
|
|
CSS classes applied to the host element. Includes ECL base table sort arrow styling. |
| getCssClasses | ||||||
getCssClasses(rootClass: string)
|
||||||
|
Parameters :
Returns :
string
|
| ariaLabel |
Type : string
|
Default value : 'Sort table'
|
Decorators :
@HostBinding('attr.aria-label')
|
|
Accessibility label describing the button's function.
This value is bound to the |
| eclThemeService |
Type : unknown
|
Default value : inject(EclThemeService)
|
| cssClasses |
getcssClasses()
|
|
CSS classes applied to the host element. Includes ECL base table sort arrow styling.
Returns :
string
|