ItemSelector
An object describing the location of an item in the Puck data.
{
"index": 0,
"zone": "Flex-123:children" // The "children" slot field in the component with id "Flex-123"
}
Params
Param | Example | Type | Status |
---|---|---|---|
index | index: 0 | Number | Required |
zone | zone: "Flex-123:children" } | String | - |
index
The index of the item.
zone
An optional string representing the location of the item. It is a concatenation of two values, joined with a colon (:
):
- The id of the parent component
- The name of the slot field or DropZone
zone
value
The root of the payload is represented by the root
id. The default content is represented by default-zone
. When not provided, zone
will contain the value root:default-zone
, injecting data into content
💡
DropZones have been replaced by slot
fields. For migration notes, see these
docs.