Parameters
- columns: ColumnDef<T, C>[]
- persisted:
| {
hidden: string[];
order: string[];
pinned: Record<string, Pinned>;
widths: Record<string, number>;
}
| undefined
- {
hidden: string[];
order: string[];
pinned: Record<string, Pinned>;
widths: Record<string, number>;
}
-
hidden: string[]
-
order: string[]
-
pinned: Record<string, Pinned>
-
widths: Record<string, number>
- undefined
- onChange: (state: ColumnStateValue) => void
- availableWidth: number
The resolved columns, their layout, and the mutators.
Column order, visibility, width and pinning, merged over the definitions' defaults.
Persisted state is merged key by key rather than replacing the defaults wholesale — so a layout saved before a new column was added does not hide that column, and does not discard defaults it says nothing about.