diff --git a/src/app/components/editor/database/columns/columns.component.html b/src/app/components/editor/database/columns/columns.component.html
index 53cc852..3fb61b0 100644
--- a/src/app/components/editor/database/columns/columns.component.html
+++ b/src/app/components/editor/database/columns/columns.component.html
@@ -48,6 +48,25 @@
+
+
+
+
+
diff --git a/src/app/components/editor/database/columns/columns.component.ts b/src/app/components/editor/database/columns/columns.component.ts
index e73cb6c..b5f01ad 100644
--- a/src/app/components/editor/database/columns/columns.component.ts
+++ b/src/app/components/editor/database/columns/columns.component.ts
@@ -84,4 +84,13 @@ export class ColumnsComponent implements OnInit {
}
}
+ iteratePin(i) {
+ if ( !this.columnSets[i].additionalData.pinned ) {
+ this.columnSets[i].additionalData.pinned = 'left';
+ } else if ( this.columnSets[i].additionalData.pinned === 'left' ) {
+ this.columnSets[i].additionalData.pinned = 'right';
+ } else {
+ delete this.columnSets[i].additionalData.pinned;
+ }
+ }
}
diff --git a/src/app/components/editor/database/database.component.ts b/src/app/components/editor/database/database.component.ts
index ea9298f..bd6a96f 100644
--- a/src/app/components/editor/database/database.component.ts
+++ b/src/app/components/editor/database/database.component.ts
@@ -225,6 +225,10 @@ export class DatabaseComponent extends EditorNodeContract implements OnInit {
x.width = x.additionalData.width;
}
+ if ( x.additionalData?.pinned ) {
+ x.pinned = x.additionalData.pinned;
+ }
+
// Set editors and renderers for different types
if ( x.Type === 'text' ) {
x.editor = 'agTextCellEditor';