Home Reference Source
import {TfSortHeaderElement} from 'tablefilter/src/components/tf-sort-header.js'
public class | source

TfSortHeaderElement

Extends:

HTMLElement → TfSortHeaderElement

Static Member Summary

Static Public Members
public static get

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public
public
public
public

Get the effective sort direction.

public

setLabel(label: *)

Set the trigger's accessible name, rendered as aria-label.

public

setSortDirection(direction: *)

Set the column's sort direction. Invalid values restore the column header's previous aria-sort.

public

setText(text: *)

Set the visible label, rendered into the text part.

Static Public Members

public static get observedAttributes: string[] source

Public Constructors

public constructor() source

Public Methods

public attributeChangedCallback() source

public connectedCallback() source

public disconnectedCallback() source

public getSortDirection(): String source

Get the effective sort direction.

Return:

String (nullable: true)

none, ascending, descending or null

public setLabel(label: *) source

Set the trigger's accessible name, rendered as aria-label.

Params:

NameTypeAttributeDescription
label *

Accessible name

public setSortDirection(direction: *) source

Set the column's sort direction. Invalid values restore the column header's previous aria-sort.

Params:

NameTypeAttributeDescription
direction *

none, ascending or descending

public setText(text: *) source

Set the visible label, rendered into the text part.

Params:

NameTypeAttributeDescription
text *

Label text