Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kuethe committed May 18, 2024
1 parent 53488df commit 57fb039
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions srcjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,6 @@ class TabulatorOutputBinding extends Shiny.OutputBinding {
const widget = new TabulatorWidget(el, payload.data, payload.options);
const table = widget.getTable();

/*
table.on("rowClick", function (e, row) {
const inputName = `${el.id}_row_clicked`;
console.log(inputName, row.getData());
Shiny.onInputChange(inputName, row.getData());
});
table.on("rowClick", (e, row) => {
const inputName = `${el.id}_rows_selected`;
const data = table.getSelectedRows().map((row) => row.getData());
console.log(inputName, data);
Shiny.onInputChange(inputName, data);
});
table.on("cellEdited", function (cell) {
const inputName = `${el.id}_row_edited`;
console.log(inputName, cell.getData());
Shiny.onInputChange(inputName, cell.getData());
});
table.on("dataFiltered", function (filters, rows) {
const inputName = `${el.id}_data_filtered`;
const data = rows.map((row) => row.getData());
console.log(inputName, data);
Shiny.onInputChange(inputName, data);
});
*/
table.on("tableBuilt", function () {
if (payload.options.columnUpdates != null) {
console.log("column updates", payload.options.columnUpdates);
Expand Down

0 comments on commit 57fb039

Please sign in to comment.