API reference: @salmonui/data-grid
DataGridColumnChooserIteminterface
import type { DataGridColumnChooserItem } from '@salmonui/data-grid';interface DataGridColumnChooserItem<Row = unknown> {
readonly field: string;
readonly header: string;
readonly hidden: boolean;
readonly matches: boolean;
readonly column: DataGridColumnInfo<Row>;
}
One listed column of the column chooser.
| Name | Signature | Description |
|---|---|---|
field | readonly field: string; | Column key. |
header | readonly header: string; | |
hidden | readonly hidden: boolean; | Draft visibility (applied on OK, or at once with |
matches | readonly matches: boolean; | Shown by the current search text. |
column | readonly column: DataGridColumnInfo<Row>; |