Search.../

open( )

Opens a mobile menu.

Description

The open() function returns a Promise that is resolved when the mobile menu's container has finished opening.

Syntax

function open(): Promise<void>

open Parameters

This function does not take any parameters.

Returns

Fulfilled - When the mobile menu has finished opening.

Return Type:

Promise<void>

Related Content:

Was this helpful?

Open a custom mobile menu

Copy Code
1$w("#myMenuContainer").open();
Open a custom mobile menu and log a message when done

Copy Code
1$w("#myMenuContainer").open()
2 .then( () => {
3 console.log("Menu is open");
4 } );