updatePanel() for Lightning Experience
Specifies a label and icon on the utility panel, and provides a height and width for the panel. This method is available for Lightning Web Components (LWC) only.
Optional parameters are passed into an object as the last argument of the method.
| Name | Type | Description |
|---|---|---|
utilityId | string | The ID of the utility panel to update. |
panelAttrs | object | Optional. Attributes that specify the appearance of the panel.
|
An optional object that describes the CSS transition for the utility panel’s height. Pass this object to panelAttrs and use with height. Optional arguments include:
durationMs—The time in milliseconds. It takes for the height transition to complete. The default value is 0.timingFunction—The transition timing function that sets the rate for panel height changes. Applies any CSS easing function that’s supported by your target browser. The default value isease.delayMs—The wait time in milliseconds before the height transition starts. The default value is 0.
An optional object that describes the CSS transition for the utility panel’s width. Pass this object to panelAttrs and use with width. Optional arguments include:
durationMs—The time in milliseconds. It takes for the width transition to complete. The default value is 0.timingFunction—The transition timing function that sets the rate for panel width changes. Applies any CSS easing function that’s supported by your target browser. The default value isease.delayMs—The wait time in milliseconds before the width transition starts. The default value is 0.
This component opens a utility using the enclosing utility ID.
To make your component available for use in a utility bar, specify the lightning__UtilityBar target in the component’s configuration file.
Returns a promise that resolves to true if successful. The promise is rejected on error.
),
), and
).