Prepend (Beta)
Prepend (Beta)
Prepend (Beta)
slot.prepend(component)Add a component instance as the first child of the slot.
Only component instances can be added to slots. Components from installed libraries are not supported; only components in the site’s own component library can be added to a slot. This action is undoable via the Designer’s undo stack.
These methods are in public beta and may change with future releases.
Promise<null>
A Promise that resolves when the component instance is added.