API ReferenceData ModelItemSelector

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

ParamExampleTypeStatus
indexindex: 0NumberRequired
zonezone: "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 (:):

  1. The id of the parent component
  2. 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.