ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
36 lines (35 loc) • 1.29 kB
TypeScript
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import { NzSafeAny } from 'ng-zorro-antd/core/types';
export declare type NzTableData = NzSafeAny | {
[key: string]: NzTableData;
};
export declare type NzTableLayout = 'fixed' | 'auto';
export declare type NzTablePaginationPosition = 'top' | 'bottom' | 'both';
export declare type NzTableSize = 'middle' | 'default' | 'small';
export declare type NzTableFilterList = Array<{
text: string;
value: NzSafeAny;
byDefault?: boolean;
}>;
export declare type NzTableSortOrder = string | 'ascend' | 'descend' | null;
export declare type NzTableSortFn = (a: NzTableData, b: NzTableData, sortOrder?: NzTableSortOrder) => number;
export declare type NzTableFilterValue = NzSafeAny[] | NzSafeAny;
export declare type NzTableFilterFn = (value: NzTableFilterValue, data: NzTableData) => boolean;
export interface NzTableQueryParams {
pageIndex: number;
pageSize: number;
sort: Array<{
key: string;
value: NzTableSortOrder;
}>;
filter: Array<{
key: string;
value: NzTableFilterValue;
}>;
}