Toggles the visibility of the confirmation exit modal.
This method updates the state of the confirmation exit modal by inverting its current visibility status.
The options for toggling the confirmation exit modal visibility.
Function to update the visibility state of the confirmation exit modal.
Current visibility state of the confirmation exit modal.
const launchConfirmExitService = new LaunchConfirmExit();launchConfirmExitService.launchConfirmExit({ updateIsConfirmExitModalVisible: (isVisible) => { console.log('Confirm exit modal is now:', isVisible ? 'Visible' : 'Hidden'); }, isConfirmExitModalVisible: false, // Initially not visible}); Copy
const launchConfirmExitService = new LaunchConfirmExit();launchConfirmExitService.launchConfirmExit({ updateIsConfirmExitModalVisible: (isVisible) => { console.log('Confirm exit modal is now:', isVisible ? 'Visible' : 'Hidden'); }, isConfirmExitModalVisible: false, // Initially not visible});
Toggles the visibility of the confirmation exit modal.
This method updates the state of the confirmation exit modal by inverting its current visibility status.
Param: options
The options for toggling the confirmation exit modal visibility.
Param: options.updateIsConfirmExitModalVisible
Function to update the visibility state of the confirmation exit modal.
Param: options.isConfirmExitModalVisible
Current visibility state of the confirmation exit modal.
Example