Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Dec 29, 2023
1 parent e2d41ce commit 5cb1014
Showing 1 changed file with 13 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,9 @@ use_db("todo")


table.next_field_id ++
await mm.pane_home_selectTable( { tableName: mm.pane_home_selectedTable})
await mm.schemaChanged()
debugger
await mm.pane_home_selectTable( { tableName: mm.pane_home_selectedTable})
await mm.pane_home_drawTabulatorGrid()
},
pane_home_deleteTable: async function ( ) {
Expand Down Expand Up @@ -700,8 +701,7 @@ use_db("todo")
}
},
{
separator:true,
separator:true,
separator:true
},
{
label:"Admin Functions",
Expand Down Expand Up @@ -773,8 +773,9 @@ use_db("todo")
rowHeight: 30,
tables: [],
data: mm.data_rows,
layout: "fitColumns",
responsiveLayout: "hide",
layout: "fitDataStretch",
//responsiveLayout: "hide",
responsiveLayout: true,
tooltips: true,
addRowPos: "top",
history: true,
Expand All @@ -783,7 +784,6 @@ use_db("todo")
movableColumns: true,
resizableColumns: true,
resizableRows: true,
movableColumns: true,
layout: [
//{display: "Fit Columns", value: "fitColumns"},
//{display: "Fit Data", value: "fitData"},
Expand Down Expand Up @@ -818,15 +818,13 @@ use_db("todo")
headerFilter: "input"
})
}
setTimeout(async function () {
let codeId = await mm.getCurrentCommitId()
let baseComponentId = yz.helpers.getValueOfCodeString(mm.text, "base_component_id")
mm.data_rows = await sqlRx(codeId, baseComponentId, "select * from " + mm.pane_home_selectedTable)
//mm.data_rows = sql("select id,name from items")

mm.pane_home_tabulator.setData(mm.data_rows)
}, 100)
},100)
let codeId = await mm.getCurrentCommitId()
let baseComponentId = yz.helpers.getValueOfCodeString(mm.text, "base_component_id")
mm.data_rows = await sqlRx(codeId, baseComponentId, "select * from " + mm.pane_home_selectedTable)
//mm.data_rows = sql("select id,name from items")

mm.pane_home_tabulator.setData(mm.data_rows)
},200)
}
}
})
Expand Down

0 comments on commit 5cb1014

Please sign in to comment.