setPanelHeaderLabel() for Lightning Experience

Sets the label of a utility’s panel. This label is displayed in the utility panel header. This method isn’t supported for Lightning Web Components (LWC).

For LWC usage, see updatePanel().

NameTypeDescription
utilityIdstringThe ID of the utility to set the panel header label on. Optional when called within a utility.
labelstringThe label of the utility displayed in the panel header.

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:

This method returns a promise that, upon success, resolves to true.