View as Markdown

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.

DataGridColumnChooserItem members (5)
NameSignatureDescription
fieldreadonly field: string;

Column key.

headerreadonly header: string;
hiddenreadonly hidden: boolean;

Draft visibility (applied on OK, or at once with mode: 'immediate').

matchesreadonly matches: boolean;

Shown by the current search text.

columnreadonly column: DataGridColumnInfo<Row>;