Class LaunchConfirmExit

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
});

Constructors

Methods

Constructors

Methods