@angular/material
Version:
Angular Material
18 lines (17 loc) • 709 B
TypeScript
import { Subject } from 'rxjs/Subject';
import { SortDirection } from './sort-direction';
/**
* To modify the labels and text displayed, create a new instance of MatSortHeaderIntl and
* include it in a custom provider.
*/
export declare class MatSortHeaderIntl {
/**
* Stream that emits whenever the labels here are changed. Use this to notify
* components if the labels have changed after initialization.
*/
changes: Subject<void>;
/** ARIA label for the sorting button. */
sortButtonLabel: (id: string) => string;
/** A label to describe the current sort (visible only to screenreaders). */
sortDescriptionLabel: (id: string, direction: SortDirection) => string;
}