Mercurial > packages > framework
diff publishable/resources/js/ServerTable.js @ 5:f282c6ef1671
better support for server side tables
| author | luka |
|---|---|
| date | Tue, 19 Aug 2025 22:15:16 -0400 |
| parents | 84c75d9d90be |
| children | 6ded573b0a61 |
line wrap: on
line diff
--- a/publishable/resources/js/ServerTable.js Tue Aug 19 20:33:35 2025 -0400 +++ b/publishable/resources/js/ServerTable.js Tue Aug 19 22:15:16 2025 -0400 @@ -174,7 +174,7 @@ ) { return `<td></td>`; } - return `<td>${ + return `<td class='${ typeof col.class === "string" ? col.class : '' }' >${ typeof col.render === "function" ? col.render(row, col, i) : row[col.name] @@ -191,7 +191,7 @@ `<tr>${cols .map( (col) => - `<td>${ + `<td class='${ typeof col.class === "string" ? col.class : '' }' >${ typeof col.render === "function" ? col.render(row, col, i) : row[col.name]
