Get display name (Beta)
Get display name (Beta)
element.getDisplayName()
Get the user-facing display name of an element as shown in the Navigator panel.
Beta
These methods are in public beta and may change with future releases.
Syntax
Returns
- Promise<String>: If the element has a custom display name, a promise that resolves to that name.
- Promise<
null>: If the element is using its default name, a promise that resolves tonull.
Example
Designer Ability
Checks for authorization only