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