import { PipeTransform } from '@angular/core'; import { ValueGetter } from '../utils/column-prop-getters'; /** * Column property that indicates how to retrieve this column's * value from a row. * 'a.deep.value', 'normalprop', 0 (numeric) */ export declare type TableColumnProp = string | number; /** * Column Type */ export interface TableColumn { /** * Internal unique id */ $$id?: string; /** * Internal for column width distributions */ $$oldWidth?: number; /** * Internal for setColumnDefaults */ $$valueGetter?: ValueGetter; /** * cellTooltipDisabled indicates whether the tooltip popover is disabled for the cells in this column. */ cellTooltipDisabled?: boolean; /** * Determines if column is checkbox */ checkboxable?: boolean; /** * Determines if column is single select with radio */ radio?: boolean; /** * Determines if the column is frozen to the left */ frozenLeft?: boolean; /** * Determines if the column is frozen to the right */ frozenRight?: boolean; /** * The grow factor relative to other columns. Same as the flex-grow * API from http =//www.w3.org/TR/css3-flexbox/. Basically; * take any available extra width and distribute it proportionally * according to all columns' flexGrow values. */ flexGrow?: number; /** * Min width of the column */ minWidth?: number; /** * Max width of the column */ maxWidth?: number; /** * The default width of the column, in pixels */ width?: number; /** * Can the column be resized */ resizeable?: boolean; /** * Custom sort comparator */ comparator?: any; /** * Custom pipe transforms */ pipe?: PipeTransform; /** * Can the column be sorted */ sortable?: boolean; /** * Can the column be re-arranged by dragging */ draggable?: boolean; /** * Whether the column can automatically resize to fill space in the table. */ canAutoResize?: boolean; /** * Column name or label */ name?: string; /** * Property to bind to the row. Example: * * `someField` or `some.field.nested`, 0 (numeric) * * If left blank, will use the name as camel case conversion */ prop?: TableColumnProp; /** * Cell template ref */ cellTemplate?: any; /** * Header template ref */ headerTemplate?: any; /** * CSS Classes for the cell */ cellClass?: string | ((data: any) => string | any); /** * CSS classes for the header */ headerClass?: string | ((data: any) => string | any); /** * Header checkbox enabled */ headerCheckboxable?: boolean; }