Wocart

@wocart/theme v4.1.0


@wocart/theme / index / ListFieldDefinition

Interface: ListFieldDefinition

list: repeatable items — trust badges, questions and answers, slides. Each stored item is { id, props }: the id is unique within the list, so reordering never makes one item take another's identity. Item fields resolve like a section's (per-language text included), except that they cannot default from the content pack — every item would read the same key.

Extends

  • FieldDefinitionBase

Properties

default?

optional default?: readonly ListItem[]


description?

optional description?: LocalizedText

Editor-facing help text.

Inherited from

FieldDefinitionBase.description


fields

fields: readonly ListItemFieldDefinition[]


itemLabel?

optional itemLabel?: string

The item field (text or textarea) an editor shows as each item's title.


key

key: string

The exact prop name the component expects.

Inherited from

FieldDefinitionBase.key


kind

kind: "list"


label

label: LocalizedText

Editor-facing name, the same in every language or translated.

Inherited from

FieldDefinitionBase.label


max?

optional max?: number


min?

optional min?: number


required?

optional required?: boolean

Inherited from

FieldDefinitionBase.required


visibleIf?

optional visibleIf?: FieldCondition

When an editor shows the field; absent: always. The renderer ignores it.

Inherited from

FieldDefinitionBase.visibleIf