Newer Version Available
setUtilityHighlighted() for Lightning Experience
Sets a utility as highlighted, giving it a badge and a more prominent background color.
This method isn’t supported for Lightning Web Components (LWC).
For LWC usage, see updateUtility() for Lightning Experience.
Arguments
| Name | Type | Description |
|---|---|---|
| utilityId | string | The ID of the utility to highlight. Optional when called within a utility. |
| highlighted | boolean | Whether the utility is highlighted. Makes a utility more prominent by giving it a different background color. |
Aura Components Sample Code
This component, when added to a single-column Lightning page used in a utility bar, sets a utility as highlighted when the button is pressed.
Component code:
Controller code:
Response
This method returns a promise that, upon success, resolves to true.