toggleToolbar(newState?: boolean)

Toggles the application toolbar visibility state.

If the toolbar is currently shown, then it will be hidden. And vice-versa -> if the toolbar is currently hidden, then it will be shown. There is also an optional param to set a concrete target visibility state, but you may use hideToolbar() and showToolbar() to achieve similar functionality.

//This will toggle the toolbar visibility state

//This will show the toolbar, equivalent to sambaFrame.showToolbar();

//This will hide the toolbar, equivalent to sambaFrame.hideToolbar();

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

Last updated