Mercurial > packages > framework
comparison publishable/resources/js/ServerTable.js @ 6:6ded573b0a61
updating the server tables to show blank on null by default
| author | luka |
|---|---|
| date | Tue, 09 Sep 2025 15:49:54 -0400 |
| parents | f282c6ef1671 |
| children | e6132a1e8e24 |
comparison
equal
deleted
inserted
replaced
| 5:f282c6ef1671 | 6:6ded573b0a61 |
|---|---|
| 192 .map( | 192 .map( |
| 193 (col) => | 193 (col) => |
| 194 `<td class='${ typeof col.class === "string" ? col.class : '' }' >${ | 194 `<td class='${ typeof col.class === "string" ? col.class : '' }' >${ |
| 195 typeof col.render === "function" | 195 typeof col.render === "function" |
| 196 ? col.render(row, col, i) | 196 ? col.render(row, col, i) |
| 197 : row[col.name] | 197 : row[col.name] === null ? '' : row[col.name] |
| 198 }</td>`, | 198 }</td>`, |
| 199 ) | 199 ) |
| 200 .join("")}</tr>`, | 200 .join("")}</tr>`, |
| 201 ) | 201 ) |
| 202 .join(""); | 202 .join(""); |
