Newer Version Available
setUtilityHighlighted() for Lightning Experience
Sets a utility as highlighted, giving it a badge and a more prominent background
color.
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. |
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.