Service to toggle the visibility of a waiting modal.
The options to control the waiting modal visibility.
Function to update the visibility of the waiting modal.
Current visibility state of the waiting modal.
const launchWaitingService = new LaunchWaiting();launchWaitingService.launchWaiting({ updateIsWaitingModalVisible: (isVisible) => console.log(`Modal is now ${isVisible ? 'visible' : 'hidden'}`), isWaitingModalVisible: false,}); Copy
const launchWaitingService = new LaunchWaiting();launchWaitingService.launchWaiting({ updateIsWaitingModalVisible: (isVisible) => console.log(`Modal is now ${isVisible ? 'visible' : 'hidden'}`), isWaitingModalVisible: false,});
This example toggles the modal's visibility state, making it visible if it was hidden and vice versa.
Toggles the visibility of the waiting modal.
Function to update the visibility state of the waiting modal.
Service to toggle the visibility of a waiting modal.
Param: options
The options to control the waiting modal visibility.
Param: options.updateIsWaitingModalVisible
Function to update the visibility of the waiting modal.
Param: options.isWaitingModalVisible
Current visibility state of the waiting modal.
Example
This example toggles the modal's visibility state, making it visible if it was hidden and vice versa.