Newer Version Available
setPanelHeaderLabel() for Lightning Experience
Sets the label of the current utility’s panel. This label is displayed in the utility
panel header.
Arguments
| Name | Type | Description |
|---|---|---|
| label | string | The label of the utility displayed in the panel header. |
Sample Code
This component, when added to a single-column Lightning page used in a utility bar, sets the label of the utility panel to “My Utility” when the button is pressed.
Component code:
Controller code:
Response
None.