mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
feat(plugin-data-spreadsheet): CB-268 return changes
This commit is contained in:
@@ -21,6 +21,7 @@ import {
|
||||
CellClassParams,
|
||||
SortChangedEvent,
|
||||
RowNode,
|
||||
CellEditingStoppedEvent
|
||||
} from '@ag-grid-community/core';
|
||||
import { injectable, IInitializableController, IDestructibleController } from '@cloudbeaver/core-di';
|
||||
import {
|
||||
@@ -84,6 +85,7 @@ export class AgGridTableController implements IInitializableController, IDestruc
|
||||
onBodyScroll: this.handleBodyScroll.bind(this),
|
||||
|
||||
onSortChanged: this.handleSortChanged.bind(this),
|
||||
onCellEditingStopped: this.handleCellEditingStopped.bind(this),
|
||||
};
|
||||
|
||||
@observable columns: ColDef[] = [];
|
||||
@@ -138,7 +140,6 @@ export class AgGridTableController implements IInitializableController, IDestruc
|
||||
startRow,
|
||||
endRow,
|
||||
successCallback,
|
||||
sortModel,
|
||||
failCallback,
|
||||
} = params;
|
||||
|
||||
@@ -158,6 +159,10 @@ export class AgGridTableController implements IInitializableController, IDestruc
|
||||
}
|
||||
}
|
||||
|
||||
private handleCellEditingStopped(event: CellEditingStoppedEvent) {
|
||||
this.gridModel.onCellEditingStopped(event.rowIndex, event.column.getId(), event.value, false);
|
||||
}
|
||||
|
||||
private changeChunkSize(): void {
|
||||
this.gridOptions.cacheBlockSize = this.gridModel.getChunkSize();
|
||||
// ag-grid is not able to change ca
|
||||
|
||||
Reference in New Issue
Block a user