import { HeaderCell } from '../../cells/holders/header-cell.component'; import { BodyCell } from '../../cells/holders/body-cell.component'; import { DomHolder } from '../../cells/holders/dom-holder.directive'; import { AbstractTable, ICol } from '../context/abstract/table.class'; import { ColCash } from './cash.class'; import { SortableArgs, Sortable } from '../../../utils/sorter.class'; export interface ColArgs { order: number; sortable: SortableArgs; width: CssWidth; ctx: AbstractTable; } export declare class Col implements DomHolder { readonly id: string; readonly title: () => string; readonly component: HeaderCell; readonly width: CssWidth; readonly cell: BodyCell; readonly sortable: Sortable; readonly isControlable: boolean; readonly dom: HTMLElement; readonly ctx: AbstractTable; readonly defaults: ColCash; order: number; isVisible: boolean; isPinned: boolean; constructor({ id, title, cell, isVisible, isPinned, isControlable, header: component, }: ICol, { order, sortable, width, ctx, }: ColArgs); toJson(): ColCash; } export interface CssWidth { initialMinWidth: number; 'width.%': number; 'min-width.px': number; 'max-width.px': number; }