ng-table-pg
Version:
A powerful and flexible responsive table component for Angular applications with drag-drop, filtering, pagination, and advanced responsive features
32 lines (31 loc) • 717 B
TypeScript
export interface ITableOrderChange {
item: any;
oldIndex: number;
newIndex: number;
oldPage: number;
newPage: number;
globalIndex: number;
}
export interface ITableButtons {
label: string;
icon?: string;
handler: () => void;
}
export interface ITableActions {
label: string;
handler: (item: any) => void;
show?: (item: any) => boolean;
}
export interface ITableColumns {
key: string;
label: string;
type?: string;
transform?: (value: any, row: any) => any;
width?: number | string;
priority?: 1 | 2 | 3;
expandable?: boolean;
sortable?: boolean;
resizable?: boolean;
minWidth?: number | string;
maxWidth?: number | string;
}