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
These methods are in public beta and may change with 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