Skip to main content
getSidebarView() Prebuilt Custom Returns the currently selected sidebar tab in Daily Prebuilt.

Return value

Returns a Promise<SidebarView>. Possible values:
  • null — sidebar is closed
  • 'people' — participants list
  • 'chat' — chat panel
  • 'network' — network stats panel
  • 'breakout' — breakout rooms panel
  • A custom string — a custom sidebar integration

Example

const view = await call.getSidebarView();

if (view === 'chat') {
  console.log('Chat panel is open');
}

See also