Switch to given mode if authorized. Closes current mode and related toolbox.
The mode to switch to
Optional
Callback when the mode is closed
Generated using TypeDoc
Switch to given mode if authorized. Closes current mode and related toolbox.