addUICallback()
addUICallback(event: string, callback: function)
Last updated
addUICallback(event: string, callback: function)
Last updated
Overrides a UI (frontend) interaction using a callback function. The default action of the Samba's frontend will not execute, and instead your callback will override it.
In the below example user will be asked by a confirmation popup before leaving the session: