UNPKG

design-system-simplefi

Version:

Design System for SimpleFi Applications

45 lines (44 loc) 1.13 kB
export interface TableProps { data: any[]; columns: IColumn[]; sortable?: boolean; filterable?: boolean; onSelect?: (key: any) => void; callback?: () => void; tableId: string; stickyHeader?: boolean; stickyHeaderTop?: number; customSort?: (data: any) => void; align?: 'right' | 'center' | 'left'; } export interface IColumn { id: string; header?: string; value: string | ((value: any) => void); renderCell?: any; options?: { filterable?: boolean; sortable?: boolean; searchable?: boolean; standardDisplay?: boolean; headerStyle?: Record<string, unknown>; cellStyle?: Record<string, unknown>; filterRange?: IFilterRange; collapseManyDecimals?: boolean; }; onlyDisplayOnHover?: boolean; tooltipMessage?: string; } export interface IFilters { sort?: { column?: string; direction?: 'ASC' | 'DESC'; }; filters: any; } export interface IFilterRange { min: number; max: number; step?: number; units?: string; }