FieldAdminConfigInput
Defined in: packages/core/src/fields/baseTypes.ts:268
Admin-panel configuration accepted on a field factory’s admin option — visibility,
conditional display, editability, layout position/width, placeholder, cell alignment,
and per-field slot overrides, all optional and defaulted when resolved.
Extended by
Section titled “Extended by”TextFieldAdminInputEmailFieldAdminInputNumberFieldAdminInputCommitTsFieldAdminInputBlocksFieldAdminInputSelectFieldAdminInputRelationshipFieldAdminInputUrlFieldAdminInputGroupFieldAdminConfigInput
Type Parameters
Section titled “Type Parameters”TCollectionSlug
Section titled “TCollectionSlug”TCollectionSlug extends VexResourceSlug = VexResourceSlug
The collection (or global) condition’s data is typed against.
TComponent
Section titled “TComponent”TComponent extends ComponentHKT = ComponentHKT
The framework component HKT the slot overrides are typed against.
Properties
Section titled “Properties”cellAlignment?
Section titled “cellAlignment?”
optionalcellAlignment?:Alignment
Defined in: packages/core/src/fields/baseTypes.ts:319
Content alignment in data table cells. ‘left’ | ‘right’ | ‘center’
columnWidth?
Section titled “columnWidth?”
optionalcolumnWidth?:number
Defined in: packages/core/src/fields/baseTypes.ts:354
Pixel width of this field’s own column in the list table (Decision
48) — unlike enableSorting/enableHiding, this has no type-based
resolution here: the default lives only in resolveListViewColumnConfig’s
own FIELD_TYPE_DEFAULT_WIDTH map, consulted when neither this nor
the active view’s own column entry (ColumnEntry.width, which always
wins) sets one. Named columnWidth, not width, to avoid colliding
with this same interface’s own width (the field’s CSS row width in
the EDIT form layout) — a different axis entirely.
components?
Section titled “components?”
optionalcomponents?:FieldSlotComponentsInput<TComponent>
Defined in: packages/core/src/fields/baseTypes.ts:326
Per-field slot overrides and additive contributions (S1/S6). Omitted entirely for a field
with no customization — resolves to {} (every list empty).
Experimental: breaking changes are still possible before this stabilizes.
enableHiding?
Section titled “enableHiding?”
optionalenableHiding?:boolean
Defined in: packages/core/src/fields/baseTypes.ts:343
Allow this field’s column to be hidden from the list table via the
columns menu. Every column is hideable by default (list-view-overhaul
Decision 47, revised) — set false to opt a specific field OUT (e.g.
a title/identity column the list should never let a user hide).
Default: true
enableSorting?
Section titled “enableSorting?”
optionalenableSorting?:boolean
Defined in: packages/core/src/fields/baseTypes.ts:334
Allow the list table’s column header for this field to sort the table.
The field must lead some declared index (or be defaultView.sort.field) —
checked by validateSavedListViewConfig.
Default: false
hidden?
Section titled “hidden?”
optionalhidden?:boolean
Defined in: packages/core/src/fields/baseTypes.ts:287
Hide this field from the admin form. Hidden fields are still stored in the database.
Default: false
placeholder?
Section titled “placeholder?”
optionalplaceholder?:string
Defined in: packages/core/src/fields/baseTypes.ts:315
Placeholder text shown in the input when empty.
position?
Section titled “position?”
optionalposition?:"main"|"sidebar"
Defined in: packages/core/src/fields/baseTypes.ts:303
Position of the field in the form layout.
"main"— placed in the main content area"sidebar"— placed in the sidebar panel
Default: "main"
readOnly?
Section titled “readOnly?”
optionalreadOnly?:boolean
Defined in: packages/core/src/fields/baseTypes.ts:294
Make this field read-only in the admin form. The value is displayed but cannot be edited.
Default: false
width?
Section titled “width?”
optionalwidth?:string
Defined in: packages/core/src/fields/baseTypes.ts:311
Width of the field within its row, as any CSS width ("50%", "240px").
A row() lays its children out with flex-wrap, sharing a line when their
widths allow; below the sm breakpoint every field is full width.
Default: "100%"
Methods
Section titled “Methods”condition()?
Section titled “condition()?”
optionalcondition(props):boolean
Defined in: packages/core/src/fields/baseTypes.ts:280
Shows the field only while this returns true; a hidden field also skips
required and validate(). A condition that throws counts as met.
Declared with method syntax so the parameter is checked bivariantly: a
field authored for one collection stays assignable to the generic field
unions the admin views hold. To author a condition separately, type it as FieldCondition.
Parameters
Section titled “Parameters”FieldConditionProps<TCollectionSlug>
Returns
Section titled “Returns”boolean