Get display name (Beta)
Get display name (Beta)
slot.getDisplayName()
Get the display name of the slot.
The display name reflects any user-customized label applied in the Designer and may differ from the prop name defined in the component source. When comparing slot names programmatically, verify that the value matches the expected label rather than the original prop name.
Beta
These methods are in public beta and may change with future releases.
Syntax
Returns
Promise<string>
A Promise that resolves to the slot’s display name, which may reflect user customization applied in the Designer rather than the original prop name.
Example
Designer Ability
Checks for authorization only.