set class attribute from xet file on the table, like for other widgets too

This commit is contained in:
ralf 2024-02-11 14:41:30 +02:00
parent b1f7d01a71
commit 6f83c4a2e3

View File

@ -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"))