Skip to content

DataTableColumn

Defined in: packages/react/src/ui/data-table/DataTableColumnsMenu.tsx:31

One column’s static display metadata, as resolved from a collection’s ALREADY read-access-filtered columns (Decision 26/47/48 — see CollectionListView’s columnMenuEntries memo, which is this prop’s source) for DataTableColumnsMenu. Every READABLE column gets an entry now (Decision 47, widened from “hideable columns only”) — a non-hideable field still participates in drag-reordering/pinning, it just can’t be hidden. Unordered, and carries no width/pin/hidden state of its own — that LIVE state is columns: ColumnEntry[] (DataTableColumnsMenuProps), looked up by field here.

TFieldSlug extends string = string

The collection’s field slugs.

field: TFieldSlug

Defined in: packages/react/src/ui/data-table/DataTableColumnsMenu.tsx:33

The field key this entry toggles/reorders/pins.


hideable: boolean

Defined in: packages/react/src/ui/data-table/DataTableColumnsMenu.tsx:37

Whether this column can be hidden (admin.enableHiding === true). false renders a disabled, permanently-checked checkbox — still draggable/pinnable.


label: string

Defined in: packages/react/src/ui/data-table/DataTableColumnsMenu.tsx:35

The column’s display label.