Skip to content

Commit

Permalink
Merge commit '2fd7bb315b91c900b47f798e9111aee7dea6063a'
Browse files Browse the repository at this point in the history
  • Loading branch information
johnspackman committed Jun 4, 2024
2 parents 6d6b9f7 + 2fd7bb3 commit 3b99778
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/class/qxl/datagrid/DataGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ qx.Class.define("qxl.datagrid.DataGrid", {
*/
construct(columns, styling) {
super();
if (!columns) {
throw new Error("Columns must be provided!");
}
this.__debounceUpdateWidgets = new qxl.datagrid.util.Debounce(() => this.updateWidgets(), 50);
this.__selectionManager = new qxl.datagrid.ui.SelectionManager();
this.__selectionManager.addListener("changeSelection", evt => {
this.scheduleUpdateWidgets();
this.fireDataEvent("changeSelection", evt.getData(), evt.getOldData());
});

columns = columns || null;
styling = styling || new qxl.datagrid.ui.GridStyling();
this.__sizeCalculator = new qxl.datagrid.ui.GridSizeCalculator(columns, styling, this);
if (columns) {
this.setColumns(columns);
}
this.setColumns(columns);

this.getQxObject("widgetPane").addListener("modelDoubleTap", evt => this.fireDataEvent("modelDoubleTap", evt.getData()));
},
Expand Down

0 comments on commit 3b99778

Please sign in to comment.