changeOverlay
On this page
@vulp/js-api > VulpApiModel > changeOverlay
VulpApiModel.changeOverlay() method
Show or hide overlay.
Signature:
changeOverlay(overlayId: string, active: boolean): Promise<{
active: boolean;
}>;
Parameters
Parameter | Type | Description |
---|---|---|
overlayId | string | The overlay to change. |
active | boolean | Whether the overlay should be displayed. |
Promise<{ active: boolean; }>
Promise that resolves to an object with the active
property, indicating whether the overlay is active.