@jcbautistam/custom-table
Version:
Librería de tabla reutilizable con acciones, filtros, exportación y más.
36 lines (35 loc) • 1.27 kB
TypeScript
import { ParametrosGenerales } from "../Models/ParametrosGenerales";
export interface ColumnConfig {
type: 'boolean' | 'date' | 'date-time' | 'number' | 'number-event' | 'default' | 'action' | 'default-truncate' | 'select' | 'money' | 'dinamic' | 'dropdown' | 'collapse' | 'percent' | 'image';
trueValue?: string;
falseValue?: string;
format?: string;
showFilter?: boolean;
startDate?: Date | null | undefined;
endDate?: Date | null | undefined;
displayName?: string;
editable?: boolean;
event?: boolean;
char?: string;
customRender?: (value: any, row: any, column: string) => string;
show?: boolean;
visible?: boolean;
iniFilterBool?: boolean;
positionDataSelect?: number;
widthColumn?: string;
bloquearSeleccion?: (value: any) => boolean;
filterFunction?: (value: any) => string;
functionEvent?: (event: any, item?: any) => void;
columnConfigs?: any;
displayColumnConfig?: any;
extraParams?: any;
fetchDataFunction?: any;
disabledInput?: boolean;
valColumnId?: any;
parametrosGenerales?: ParametrosGenerales;
indexForm?: number;
subArrayCollapse?: string;
nomSubItemCollapse?: string;
valueSubItemCollapse?: string;
isOpenCollapse?: boolean;
}