setPanelHeight() for Lightning Experience
Sets a utility panel’s height. This method isn’t supported for Lightning Web Components (LWC).
For LWC usage, see updatePanel().
| Name | Type | Description |
|---|---|---|
utilityId | string | The ID of the utility of which to set the height. Optional when called within a utility. |
heightPX | integer | The height of the utility panel in pixels. |
This component, when added to a single-column Lightning page used in a utility bar, sets the height of the utility to 500 pixels when the button is pressed.
Component code:
Controller code:
This method returns a promise that, upon success, resolves to true.