Skip to content

Interface: CustomFieldDefinition

Makaio Framework


Makaio Framework / contracts / CustomFieldDefinition

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:238

Field definition for widgets that render through the custom field path.

optional defaultValue?: unknown

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:224

Default value for the field.

BaseFieldDefinition.defaultValue


optional delimiter?: string

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:208

Delimiter for array-type fields (default varies by widget).

BaseFieldDefinition.delimiter


optional description?: string

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:218

Help text/description shown below the input, including mapped override help text.

BaseFieldDefinition.description


optional disabled?: boolean

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:226

Whether the field is disabled.

BaseFieldDefinition.disabled


key: string

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:204

Unique key for the field (used as form field name).

BaseFieldDefinition.key


label: string

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:206

Display label for the field.

BaseFieldDefinition.label


optional max?: number

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:212

Maximum numeric value (for numeric fields, including the slider widget).

BaseFieldDefinition.max


optional min?: number

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:210

Minimum numeric value (for numeric fields, including the slider widget).

BaseFieldDefinition.min


optional options?: object[]

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:222

Options for select-type fields.

label: string

The display label for this option.

value: string

The value to be stored when this option is selected.

BaseFieldDefinition.options


optional placeholder?: string

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:216

Placeholder text for text-based inputs.

BaseFieldDefinition.placeholder


optional required?: boolean

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:220

Whether the field is required.

BaseFieldDefinition.required


optional step?: number

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:214

Step increment for numeric fields, including the slider widget.

BaseFieldDefinition.step


type: "custom"

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:240

Custom fields always render through an explicit widget.


widget: FieldWidget

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:242

Builtin or plugin-registered widget used to render the custom field.