This method updates the visibility state of the background modal by calling
the provided update function with the negation of the current visibility state.
Param: options
The options object containing necessary variables and functions.
Param: options.updateIsBackgroundModalVisible
Function to update the visibility state of the background modal.
Param: options.isBackgroundModalVisible
Current visibility state of the background modal.
Returns
Example
constoptions = { updateIsBackgroundModalVisible: (isVisible) => { console.log(`Background modal is now ${isVisible?'visible':'hidden'}.`); }, isBackgroundModalVisible:false, };
Toggles the visibility of the background modal.
This method updates the visibility state of the background modal by calling the provided update function with the negation of the current visibility state.
Param: options
The options object containing necessary variables and functions.
Param: options.updateIsBackgroundModalVisible
Function to update the visibility state of the background modal.
Param: options.isBackgroundModalVisible
Current visibility state of the background modal.
Returns
Example