closeModal( )


Closes the currently open modal.

This function can only be used in page code files for dashboard pages created in the Wix editor or with Wix Blocks.

Method Declaration
Copy
Method Parameters
closeDataSerializable

Data to pass to the modal's opener. This data is returned by openModal once the modal is closed. It must be Serializable data, which means it can be cloned using the structured clone algorithm. For example, you cannot pass function callbacks in this parameter.

Did this help?