Get the parent component
element.getParentComponent()
Retrieves the component that directly contains the element. Returns null if the element is not inside a component.
Beta
This feature is released as part of a Beta program and may change in future releases.
Syntax
Returns
Promise<Component | null>
A Promise that resolves to a Component, or null if the element is not inside a component.
Example
Designer Ability
Checks for authorization only