Skip to content

Commit

Permalink
Jump to the newly created DB column
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Dec 30, 2023
1 parent 15c76e0 commit 39f5fb9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ use_db("todo")
pane_home_tabulator: null,
pane_home_selectedField: null,
data_rows: [],
pane_home_selectedColumn: null
}
},
template: `<div style='background-color:white; ' >
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 39f5fb9

Please sign in to comment.