From 39f5fb90a8868480acb9a89dc9a6365d2400b8a5 Mon Sep 17 00:00:00 2001 From: Zubair Quraishi Date: Sat, 30 Dec 2023 10:22:40 +0000 Subject: [PATCH] Jump to the newly created DB column --- .../all_system_components/appSqliteEditorComponent.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/visifile_drivers/all_system_components/appSqliteEditorComponent.js b/public/visifile_drivers/all_system_components/appSqliteEditorComponent.js index a90fec233..44137b766 100644 --- a/public/visifile_drivers/all_system_components/appSqliteEditorComponent.js +++ b/public/visifile_drivers/all_system_components/appSqliteEditorComponent.js @@ -24,6 +24,7 @@ use_db("todo") pane_home_tabulator: null, pane_home_selectedField: null, data_rows: [], + pane_home_selectedColumn: null } }, template: `
@@ -622,6 +623,7 @@ use_db("todo") table.next_field_id ++ + mm.pane_home_selectedColumn = newColumnName await mm.schemaChanged() await mm.pane_home_selectTable( { tableName: mm.pane_home_selectedTable}) await mm.pane_home_drawTabulatorGrid() @@ -815,6 +817,9 @@ use_db("todo") //mm.data_rows = sql("select id,name from items") mm.pane_home_tabulator.setData(mm.data_rows) + if (mm.pane_home_selectedColumn) { + mm.pane_home_tabulator.scrollToColumn(mm.pane_home_selectedColumn) + } },200) } }