import { GridColumnDefinition } from "./column" export interface GridItem { Value: any; DisplayValue: string; } export interface GridItemWrapper { values: Array; source: { [key: string]: Array }; } export interface GridSourceItem { value: string; text: string; } interface GridColumnDirection { [-1]: Number, 1: Number } interface GridColumnColumnEventMap { "reorder": string, "resize": string, "sort": string } export class Grid { static ColumnTypes: { Common: 0, Input: 1, Dropdown: 2, Checkbox: 3, Icon: 4, Text: 5, Date: 6, isCheckbox(type: Number): boolean; }; columns: Array; langs?: { all: string, ok: string, reset: string }; virtualCount?: Number; rowHeight?: Number; lineHeight?: Number; extraRows?: Number; filterRowHeight?: Number; height?: Number; readonly?: boolean; multiSelect?: boolean; fullrowClick?: boolean; tooltipDisabled?: boolean; headerVisible?: boolean; window?: Window sortIndex?: Number; sortDirection?: keyof GridColumnDirection; constructor(container: HTMLElement, getText?: (id: string, def?: string) => string); willSelect?: (index: Number, colIndex: Number) => boolean; cellClicked?: (index: Number, colIndex: Number) => boolean; onSelectedRowChanged?: (index?: Number) => void; onCellDblClicked?: (index: Number, colIndex: Number) => void; onRowDblClicked?: (index: Number) => void; onColumnChanged?: (type: K, index: Number, value: Number | keyof GridColumnDirection) => void; onBodyScrolled?: (e: Event) => void; get source(): Array; set source(list: Array); get selectedIndexes(): Array; set selectedIndexes(indexes: Array); get loading(): boolean; set loading(flag: boolean); get scrollTop(): Number; set scrollTop(top: Number); get element(): HTMLElement get virtual(): boolean; get sortKey(): string | undefined; get selectedIndex(): Number | -1; init(container?: HTMLElement): void; setData(source: Array): void; setItem(index: Number, item: GridItem | any): void; scrollToIndex(index: Number): void; resize(force?: boolean): void; reload(keep?: boolean): void; refresh(): void; resetChange(): void; sortColumn(reload?: boolean): void; clearHeaderCheckbox(): void; }