datagrid context menu

This commit is contained in:
Jan Prochazka
2020-11-19 12:42:13 +01:00
parent 682f53881d
commit 9a2520a10a
5 changed files with 40 additions and 25 deletions

View File

@@ -58,6 +58,7 @@ export abstract class GridDisplay {
filterable = false;
editable = false;
isLoadedCorrectly = true;
supportsReload = false;
setColumnVisibility(uniquePath: string[], isVisible: boolean) {
const uniqueName = uniquePath.join('.');

View File

@@ -32,6 +32,7 @@ export class TableGridDisplay extends GridDisplay {
this.filterable = true;
this.sortable = true;
this.editable = true;
this.supportsReload = true;
this.baseTable = this.table;
if (this.table && this.table.columns) {
this.changeSetKeyFields = this.table.primaryKey

View File

@@ -17,6 +17,7 @@ export class ViewGridDisplay extends GridDisplay {
this.filterable = true;
this.sortable = true;
this.editable = false;
this.supportsReload = true;
}
getDisplayColumns(view: ViewInfo) {