Configurable data table with fixed headers, optional column visibility toggling, flexible cell rendering, and row-level bar chart backgrounds.
Column visibility caveat: the built-in columnsEditable popup double-toggles visible in 0.0.34. Use the external settings example below or Table Settings instead. Keep column objects reactive and shared; Table captures its initial columns array and does not synchronize replacement definitions after mount. hideHeader also removes the built-in popup trigger. grow and shrink are mutually exclusive true flags; formatter and snippet are mutually exclusive renderers.
Fixed and toggleable columns with all three cell rendering options: a style.cell function for Role, a snippet for Status, and a formatter for Last Login.
| ID | Name | Role | Status | |
|---|---|---|---|---|
| 1 | User 1 | user1@example.com | Admin | Active |
| 2 | User 2 | user2@example.com | Editor | Inactive |
| 3 | User 3 | user3@example.com | Viewer | Active |
| 4 | User 4 | user4@example.com | Admin | Inactive |
| 5 | User 5 | user5@example.com | Editor | Active |
| 6 | User 6 | user6@example.com | Viewer | Inactive |
| 7 | User 7 | user7@example.com | Admin | Active |
| 8 | User 8 | user8@example.com | Editor | Inactive |
| 9 | User 9 | user9@example.com | Viewer | Active |
| 10 | User 10 | user10@example.com | Admin | Inactive |
| 11 | User 11 | user11@example.com | Editor | Active |
| 12 | User 12 | user12@example.com | Viewer | Inactive |
| 13 | User 13 | user13@example.com | Admin | Active |
| 14 | User 14 | user14@example.com | Editor | Inactive |
| 15 | User 15 | user15@example.com | Viewer | Active |
| 16 | User 16 | user16@example.com | Admin | Inactive |
| 17 | User 17 | user17@example.com | Editor | Active |
| 18 | User 18 | user18@example.com | Viewer | Inactive |
| 19 | User 19 | user19@example.com | Admin | Active |
| 20 | User 20 | user20@example.com | Editor | Inactive |
| 21 | User 21 | user21@example.com | Viewer | Active |
| 22 | User 22 | user22@example.com | Admin | Inactive |
| 23 | User 23 | user23@example.com | Editor | Active |
| 24 | User 24 | user24@example.com | Viewer | Inactive |
| 25 | User 25 | user25@example.com | Admin | Active |
Use rowStyle with createRowBarChartStyle to render proportional horizontal bars as row backgrounds.
| Product | Sales | Stock |
|---|---|---|
| Product 1 | 422 | 682 |
| Product 2 | 541 | 237 |
| Product 3 | 93 | 654 |
| Product 4 | 449 | 750 |
| Product 5 | 444 | 586 |
| Product 6 | 541 | 716 |
| Product 7 | 207 | 407 |
| Product 8 | 255 | 383 |
| Product 9 | 266 | 826 |
| Product 10 | 90 | 754 |
| Product 11 | 502 | 423 |
| Product 12 | 258 | 632 |
| Product 13 | 276 | 834 |
| Product 14 | 272 | 971 |
| Product 15 | 89 | 658 |
| Product 16 | 58 | 252 |
| Product 17 | 393 | 279 |
| Product 18 | 449 | 438 |
| Product 19 | 334 | 1020 |
| Product 20 | 199 | 226 |
Open TableSettings from an external button to control column visibility without right-click.
| ID | Name | |
|---|---|---|
| 1 | John Doe | john.doe@example.com |
| 2 | Jane Smith | jane.smith@example.com |
| 3 | Sam Wilson | sam.wilson@example.com |
| 4 | Alice Johnson | alice.johnson@example.com |
Use per-column widths and overflow overrides. This noScroll example fits columns using weighted widths and forces fixed layout despite layout=auto; vertical scrolling remains available. rowClick receives the row, full data, zero-based index and mouse or keyboard event. Fixed columns bypass cell overflow clipping in noScroll mode.
| ID | Summary | Owner |
|---|---|---|
| 1 | Audit public exports, sources and types against installed 0.0.34 | Alice |
| 2 | Update live examples and displayed source | Bob |
Select a row with the pointer or keyboard. Columns fit without horizontal scrolling.