Get Slots (Beta)
Get Slots (Beta)
Get Slots (Beta)
element.getSlots()Get all slots on a component instance.
This method returns an array of SlotInstanceElement objects, one for each slot defined on the component.
Each slot can contain component instances that you can read or modify using the slot’s own methods.
These methods are in public beta and may change with future releases.
Promise<Array<SlotInstanceElement>>
A Promise that resolves to an array of SlotInstanceElement objects.
The array order matches the order in which the slots appear in the Designer’s instance properties panel.
Checks for authorization only.