Class LaunchMenuModal

Toggles the visibility of the menu modal.

This method updates the visibility state of the menu modal by calling the provided function with the negated current visibility state. If the modal is currently visible, it will be hidden, and vice versa.

The options for launching the menu modal.

Function to update the visibility state of the menu modal.

Current visibility state of the menu modal.

const launchMenuModalService = new LaunchMenuModal();
launchMenuModalService.launchMenuModal({
updateIsMenuModalVisible: (isVisible) => {
console.log('Menu modal is now:', isVisible ? 'Visible' : 'Hidden');
},
isMenuModalVisible: false, // Initially not visible
});

Constructors

Methods

Constructors

Methods