> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# setLayout

> setLayout method for the RoomSession class.

### setLayout

* **setLayout**(`params`): `Promise<void>`

Sets a layout for the room. You can obtain a list of available layouts with [getLayouts](/docs/browser-sdk/v3/js/reference/video/room-session/get-layouts).

#### Parameters

Object containing the parameters of the method.

Name of the layout.

Positions to assign as soon as the new layout is set.

#### Returns

`Promise<void>`

#### Permissions

* `room.set_layout`
* `room.set_position` (if you need to assign positions)

You need to specify the permissions when [creating the Video Room Token](/docs/apis/rest/video/room-tokens/create-room-token) on the server side.

#### Example

Set the 6x6 layout:

```javascript
await roomSession.setLayout({ name: "6x6" });
```