UNPKG

@swimlane/ngx-datatable

Version:

ngx-datatable is an Angular table grid component for presenting large and complex data.

20 lines (19 loc) 842 B
import { TableColumn, TableColumnGroup } from '../types/table-column.type'; import { ColumnGroupWidth, PinnedColumns } from '../types/internal.types'; /** * Returns the columns by pin. */ export declare function columnsByPin(cols: TableColumn[]): TableColumnGroup; /** * Returns the widths of all group sets of a column */ export declare function columnGroupWidths(groups: TableColumnGroup, all: TableColumn[]): ColumnGroupWidth; /** * Calculates the total width of all columns and their groups */ export declare function columnTotalWidth(columns: TableColumn[], prop?: string): number; /** * Calculates the total width of all columns and their groups */ export declare function columnsTotalWidth(columns: TableColumn[], prop?: keyof TableColumn): number; export declare function columnsByPinArr(val: TableColumn[]): PinnedColumns[];