@wocart/theme / index / ProductListFieldDefinition
Interface: ProductListFieldDefinition
productList: hand-picked products, in order — product handles, each read
with the storefront client's products.get(handle). A renamed or deleted
product reads as absent. At most max (at most 50).
Extends
FieldDefinitionBase
Properties
default?
optionaldefault?: readonlystring[]
description?
optionaldescription?:LocalizedText
Editor-facing help text.
Inherited from
FieldDefinitionBase.description
key
key:
string
The exact prop name the component expects.
Inherited from
FieldDefinitionBase.key
kind
kind:
"productList"
label
label:
LocalizedText
Editor-facing name, the same in every language or translated.
Inherited from
FieldDefinitionBase.label
max?
optionalmax?:number
min?
optionalmin?:number
required?
optionalrequired?:boolean
Inherited from
FieldDefinitionBase.required
visibleIf?
optionalvisibleIf?:FieldCondition
When an editor shows the field; absent: always. The renderer ignores it.
Inherited from
FieldDefinitionBase.visibleIf