packages/ecl/components/ecl-table/ecl-table.directive.ts
| Selector | [eclTableHeader] |
Properties |
Methods |
Inputs |
Outputs |
HostBindings |
HostListeners |
Accessors |
| eclSortable |
Type : any
|
Default value : null
|
|
Enables sorting on the header. Also sets the |
| id |
Type : string
|
|
HTML |
| scope |
Type : string
|
Default value : 'col'
|
|
Scope of the table header. Default is |
| sortButtonAriaLabel |
Type : string
|
|
Aria-label for the sort button that will be injected into the header cell. |
| class |
Type : string
|
| e2eAttr |
Type : any
|
| tabindex |
Type : number
|
| sort |
Type : EventEmitter
|
|
Emits an |
| attr.aria-sort |
Type : SortOrder
|
Default value : null
|
|
Current sort order of the column ( |
| class |
Type : string
|
|
Computes the CSS classes applied to the header element. |
| onClick | ||||||
onClick(evt: Event)
|
||||||
Decorators :
@HostListener('click', ['$event'])
|
||||||
|
Handles click events on the header.
Cycles through sort orders: Click triggers 1 -> asc sorting, 2 -> desc sorting then 3 -> initial sorting
Parameters :
Returns :
void
|
| removeAriaSort |
removeAriaSort()
|
|
Clears the Remove the dark arrow for current sorting from prev sorted column
Returns :
void
|
| getCssClasses | ||||||
getCssClasses(rootClass: string)
|
||||||
|
Parameters :
Returns :
string
|
| sortOrder |
Type : SortOrder
|
Default value : null
|
Decorators :
@HostBinding('attr.aria-sort')
|
|
Current sort order of the column ( |
| cssClasses |
getcssClasses()
|
|
Computes the CSS classes applied to the header element.
Returns :
string
|