inline editing

This commit is contained in:
Jan Prochazka
2020-03-22 16:58:32 +01:00
parent 606074ca7d
commit f79e729126
11 changed files with 209 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
import _ from 'lodash'
import _ from 'lodash';
import { GridDisplay, combineReferenceActions } from './GridDisplay';
import { Select, treeToSql, dumpSqlSelect } from '@dbgate/sqltree';
import { TableInfo, EngineDriver } from '@dbgate/types';
@@ -16,6 +16,10 @@ export class TableGridDisplay extends GridDisplay {
) {
super(config, setConfig, cache, setCache, getTableInfo);
this.columns = this.getDisplayColumns(table, []);
this.baseTable = table;
this.changeSetKeyFields = table.primaryKey
? table.primaryKey.columns.map(x => x.columnName)
: table.columns.map(x => x.columnName);
}
createSelect() {