Component
DataTableColumnVisibility
A menu that shows and hides a data table's columns.
import { DataTableColumnVisibility } from '@loidolt/theme-svelte';
Example
| Stock | Status | Layers | |
|---|---|---|---|
| Bracket 1 | Birch ply | Ready | 1 |
| Coaster 1 | Mount board | In review | 8 |
| Sign 1 | Cork | Ready | 4 |
| Enclosure 1 | Acrylic | Blocked | 11 |
| Panel 1 | Birch ply | Ready | 7 |
1–5 of 42
Notes
- Columns with
hideable: falseare left out of the menu.
Props
Generated from the component source, so it cannot drift from the implementation.
| Prop | Type | Default | Notes |
|---|---|---|---|
table required | DataTableState<T> | — | |
class | string | — | |
label | string | 'Columns' | Trigger text. |
resetLabel | string | 'Show all' |