Skip to content

getUIFieldsWithCell

getUIFieldsWithCell(props): Record<string, UIField>

Defined in: packages/core/src/fields/utils.ts:581

Collects every ui() field whose admin.components.Cell is set, reachable by hoisting through tabs()/row()/collapsible() nesting — the same traversal getDataFields itself uses for data fields, except getDataFields explicitly DROPS ui() entries (its own doc comment: “ui() entries are dropped”), so list-column generation needs this sibling function instead. Does not descend into group()/array()/blocks(): their own sub-fields never surface as a top-level list column, so a ui() field nested inside one of those doesn’t either — same scope getDataFields itself stops at (a group/array/blocks field is assigned as-is, never expanded).

A named tab’s ui() field has no stored value to nest under that tab’s own group-shaped data key, so it is instead keyed "<tabName>.<key>" — unique enough for a TanStack Table column id, which is all a ui() field’s column needs (its Cell reads data directly, never row.getValue).

Record<string, AdminField>

Record<string, UIField>

The ui() fields with a Cell component, keyed by their resolved column id (dotted with the tab name for a named tab).

getDataFields for the data-field counterpart this mirrors.