UNPKG

@rhds/elements

Version:

Red Hat Design System Elements

29 lines (28 loc) 875 B
import { LitElement } from 'lit'; import { ComposedEvent } from '@patternfly/pfe-core'; export declare class RequestSortEvent extends ComposedEvent { direction: 'asc' | 'desc'; constructor(direction: 'asc' | 'desc'); } /** * Table sort button * * @fires {RequestSortEvent} request-sort - when the button is clicked */ export declare class RhSortButton extends LitElement { static readonly styles: CSSStyleSheet[]; /** The button's sorting order */ sortDirection?: 'asc' | 'desc'; /** The column name associated with this button (for screen readers) */ column?: string; render(): import("lit-html").TemplateResult<1>; /** * Dispatch a request-sort event in ascending (asc) or descending (desc) order */ sort(): void; } declare global { interface HTMLElementTagNameMap { 'rh-sort-button': RhSortButton; } }