Newer Version Available
toggleModalMode() for Lightning Experience
Toggles modal mode for a utility. While in modal mode, an overlay blocks users from
using the console while the utility panel is visible. This method isn’t supported for Lightning
Web Components (LWC).
For LWC usage, see enableModal().
Arguments
| Name | Type | Description |
|---|---|---|
| utilityId | string | The ID of the utility to open. Optional when called within a utility. |
| enableModalMode | boolean | Whether to enable modal mode. |
Aura Components Sample Code
This component, when added to a single-column Lightning page used in a utility bar, has a button that, when pressed, toggles modal mode.
Component code:
Controller code:
Response
This method returns a promise that, upon success, resolves to true.