import { Cell, CodeType, LookupCallColumn, LookupCallOrModel, SmartColumnEventMap, SmartColumnModel, SmartField, TableRow } from '../../index'; /** * Column where each cell fetches its value using a lookup call. * * A 'prepareLookupCall' event gets triggered before executing the lookup call and contains two properties, 'lookupCall' and 'row'. Here, 'lookupCall' is the * lookup call which is used to fetch one or more values for a cell. 'row' is the row containing the cell and usually corresponds to the selected row. * It should be used instead of the property selectedRows from Table.js which must not be used here. * 'row' can be null or undefined in some cases. Hence, some care is needed when listening to this event. */ export declare class SmartColumn extends LookupCallColumn implements SmartColumnModel { model: SmartColumnModel; eventMap: SmartColumnEventMap; self: SmartColumn; browseAutoExpandAll: boolean; browseLoadIncremental: boolean; activeFilterEnabled: boolean; protected _lookupCallBatchContext: SmartColumnBatchContext; constructor(); protected _initCell(cell: Cell): Cell; protected _calculateCellSortCode(cell: Cell): number; protected _updateAllCellSortCodes(): void; protected _setLookupCall(lookupCall: LookupCallOrModel): void; protected _setCodeType(codeType: string | (new () => CodeType)): void; setBrowseAutoExpandAll(browseAutoExpandAll: boolean): void; setBrowseLoadIncremental(browseLoadIncremental: boolean): void; setActiveFilterEnabled(activeFilterEnabled: boolean): void; protected _formatValue(value: TValue, row?: TableRow): string | JQuery.Promise; /** * Defers all invocations of the lookup call for the duration of the current event handler. * Once the current event handler completes, all lookup calls are resolved in a single batch. */ protected _batchFormatValue(key: TValue): JQuery.Promise; /** * Create and set the lookup-row instead of call setValue() as this would execute a lookup by key * which is not necessary, since the cell already contains text and value. This also avoids a problem * with multiple lookups running at once, see ticket 236960. */ protected _updateEditorFromValidCell(field: SmartField, cell: Cell): void; protected _createEditor(row: TableRow): SmartField; /** * Since we don't know the type of the key from the lookup-row we must deal with numeric and string types here. */ protected _hasCellValue(cell: Cell): boolean; protected _setCellValue(row: TableRow, value: TValue, cell: Cell): void; } export type SmartColumnBatchContext = { keySet: Set; result: JQuery.Promise>; }; //# sourceMappingURL=SmartColumn.d.ts.map