From 6f83c4a2e3d5985fbb71fad5ac905fe611ef662b Mon Sep 17 00:00:00 2001 From: ralf Date: Sun, 11 Feb 2024 14:41:30 +0200 Subject: [PATCH] set class attribute from xet file on the table, like for other widgets too --- api/js/etemplate/et2_widget_grid.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/js/etemplate/et2_widget_grid.ts b/api/js/etemplate/et2_widget_grid.ts index de5ec5e60f..3a675cc2ad 100644 --- a/api/js/etemplate/et2_widget_grid.ts +++ b/api/js/etemplate/et2_widget_grid.ts @@ -132,6 +132,7 @@ export class et2_grid extends et2_DOMWidget implements et2_IDetachedDOM, et2_IAl // Create the table body and the table this.table = jQuery(document.createElement("table")) .addClass("et2_grid"); + if (_attrs.class) this.table.addClass(_attrs.class); this.thead = jQuery(document.createElement("thead")) .appendTo(this.table); this.tfoot = jQuery(document.createElement("tfoot"))