> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# setSidebarView()

> Opens the Daily Prebuilt sidebar to a specific panel, or closes it.

`setSidebarView(view)`

✓ Prebuilt✗ Custom

Fires a [`sidebar-view-changed`](https://docs.daily.co/reference/daily-js/events/iframe-ui-events#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:

| Value | Panel |
| - | - |
| `'people'` | Participants list |
| `'chat'` | Chat |
| `'network'` | Network stats |
| `'breakout'` | Breakout rooms |
| `null` | Close the sidebar |

Custom sidebar integration names (as defined in [`setCustomIntegrations()`](https://docs.daily.co/reference/daily-js/instance-methods/set-custom-integrations)) are also accepted.

## Return value

Returns `this` for chaining.

## Example

```javascript theme={null}
// Open to the chat panel
call.setSidebarView('chat');

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

## See also

> [card] Methods
>
> * [getSidebarView()](https://docs.daily.co/reference/daily-js/instance-methods/get-sidebar-view.md)
> * [setCustomIntegrations()](https://docs.daily.co/reference/daily-js/instance-methods/set-custom-integrations.md)

> [card] Events
>
> * [sidebar-view-changed](https://docs.daily.co/reference/daily-js/events/iframe-ui-events.md#sidebar-view-changed)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.