Newer Version Available
setPanelHeaderLabel() for Lightning Experience
Sets the label of a utility’s panel. This label is displayed in the utility panel
header.
Arguments
| Name | Type | Description |
|---|---|---|
| utilityId | string | The ID of the utility to set the panel header label on. Optional when called within a utility. |
| 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
This method returns a promise that, upon success, resolves to true.