import { Column as dxDataGridColumn, Properties as dxDataGridOptions } from 'devextreme/ui/data_grid'; import * as ko from 'knockout'; import { DashboardLocalizationId } from '../../../data/localization/_default'; import { CollectionEditorRefreshCallback } from './_collection-editor-viewmodel-base'; export interface InlineEditCollectionEditorOptions { dataFields: Array; noDataText?: DashboardLocalizationId; gridColumns?: Array; isToolbarVisible?: boolean; allowAddItem?: boolean; allowRemoveItem?: boolean; allowReorderItem?: boolean; createNewItemHandler?: () => T; customizeInlineEditor?: (e: any) => void; customizeCell?: (e: any) => void; enableAddItem?: (selectedItem: T) => boolean; enableRemoveItem?: (selectedItem: T) => boolean; enableEditItem?: (selectedItem: T, args: any) => boolean; forceRefreshCallback?: CollectionEditorRefreshCallback; } export declare class InlineEditCollectionEditorViewModel { private dataFields; private dataSource; private noDataText; private enableAddItem; private enableRemoveItem; private enableEditItem; private createNewItemHandler; private customizeInlineEditor; private customizeCell; private gridColumns; private dataSourceSubscription; private gridInstance; private dataSourceMapper; isToolbarVisible: boolean; allowAddItem: boolean; allowRemoveItem: boolean; allowReorderItem: boolean; addEnabled: ko.Observable; removeEnabled: ko.Observable; upEnabled: ko.Observable; downEnabled: ko.Observable; constructor(params: InlineEditCollectionEditorOptions, dataSource: ko.ObservableArray); getGridOptions(): dxDataGridOptions; get selectedValue(): T; add: () => void; remove: () => T[]; down: () => void; up: () => void; dispose(): void; private _addNewItemRow; private _moveSelectedGridRow; private _updateActionsState; }