toggleWhiteboard()
toggleWhiteboard(newState?: boolean)
Toggles the whiteboard visibility state.
If the whiteboard is currently opened, then it will be closed. And vice versa -> if the whiteboard is currently closed, then it will be opened. There is also an optional param to set a concrete target visibility state, but you may use closeWhiteboard() and openWhiteboard() to achieve similar functionality.
Sample use case: You may have a button in your application to control the whiteboard visibility.
Last updated