> For the complete documentation index, see [llms.txt](https://docs.digitalsamba.com/reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalsamba.com/reference/sdk/methods/togglewhiteboard.md).

# toggleWhiteboard()

Sets a concrete whiteboard visibility state.

```javascript
//This will open the whiteboard, equivalent to sambaFrame.openWhiteboard(...);
sambaFrame.toggleWhiteboard(true, 'c0771004-c9fc-4308-be4f-6264d8e486af'); 

//This will close the whiteboard, equivalent to sambaFrame.closeWhiteboard(...);
sambaFrame.toggleWhiteboard(false, 'c0771004-c9fc-4308-be4f-6264d8e486af');
```

**Sample use case**: \
You may have a button in your application to control the whiteboard visibility.
