UNPKG

ng-fusion-ui

Version:

Angular data table library!

30 lines (29 loc) 878 B
import { FieldPath } from '../helpers'; /** * External column visibility configuration. * * When provided to `fu-table`, this configuration overrides * the `visible` state defined on individual `fu-column`s. */ export interface FuColumnConfig<T> { /** Field path of the column (dot-notation supported). */ field: FieldPath<T>; /** Whether the column should be visible. */ visible: boolean; } export interface FuTableQuery { pageIndex: number; pageSize: number; sortField?: string | number; sortDirection?: FuSortDirection; searchTerm?: string; } export interface FuUiConfig { responsive: boolean; scrollable: boolean; stickyHeader: boolean; stickyFirstColumn: boolean; stickyLastColumn: boolean; } export type FuSortDirection = 'asc' | 'desc' | null; export type FuFieldType = 'text' | 'number' | 'date' | 'boolean';