Skip to main content
setSidebarView(view) Prebuilt Custom Fires a sidebar-view-changed event when the view changes.

Parameters

view
SidebarView
required
The panel to open, or null to close the sidebar. Built-in values:
ValuePanel
'people'Participants list
'chat'Chat
'network'Network stats
'breakout'Breakout rooms
nullClose the sidebar
Custom sidebar integration names (as defined in setCustomIntegrations()) are also accepted.

Return value

Returns this for chaining.

Example

// Open to the chat panel
call.setSidebarView('chat');

// Close the sidebar
call.setSidebarView(null);

See also