@taiga-ui/addon-table
Version:
A library to display tabled data with filters, search, group actions, etc.
49 lines (48 loc) • 1.54 kB
TypeScript
import type { Provider } from '@angular/core';
import type { TuiComparator } from '@taiga-ui/addon-table/types';
import type { TuiSizeL, TuiSizeS } from '@taiga-ui/core/types';
export declare const TuiSortDirection: {
readonly Asc: 1;
readonly Desc: -1;
};
export type TuiSortDirection = (typeof TuiSortDirection)[keyof typeof TuiSortDirection];
export interface TuiSortChange<T> {
/**
* @deprecated use sortKey
*/
sortBy: keyof T | null;
sortKey: keyof T | null;
/**
* @deprecated use sortDirection
*/
orderBy: TuiSortDirection;
sortDirection: TuiSortDirection;
}
export interface TuiTableSortChange<T> {
/**
* @deprecated use sortComparator
*/
sortBy: TuiComparator<T> | null;
sortComparator: TuiComparator<T> | null;
/**
* @deprecated use sortDirection
*/
orderBy: TuiSortDirection;
sortDirection: TuiSortDirection;
}
export interface TuiTableOptions {
readonly direction: TuiSortDirection;
readonly requiredSort: boolean;
readonly open: boolean;
readonly resizable: boolean;
readonly size: TuiSizeL | TuiSizeS;
readonly sortIcons: {
readonly asc: string;
readonly desc: string;
readonly off: string;
};
readonly sticky: boolean;
}
export declare const TUI_TABLE_DEFAULT_OPTIONS: TuiTableOptions;
export declare const TUI_TABLE_OPTIONS: import("@angular/core").InjectionToken<TuiTableOptions>;
export declare function tuiTableOptionsProvider(options: Partial<TuiTableOptions>): Provider;