sidebar
sidebar: boolean
Controls the visibility of the sidebar in the ChatBot widget. The default value is true
.
Example of usage:
const chat = new ChatBot(node, { sidebar: true });
Change sidebar visibility
To update the visibility of the sidebar after the widget has been initialized, use the setConfig
method:
chat.setConfig({ sidebar: false });
Get visibility state of sidebar
To access the current visibility state of the sidebar, use the getConfig
method:
const visibility = chat.getConfig().sidebar;