# ui.root.setLayout

<br />

Sets the ui.root panel's layout.

<br />

Returns the root panel.

| Usage | Returns |
|---|---|
| `ui.root.setLayout(layout)` | ui.Panel |

| Argument | Type | Details |
|---|---|---|
| `layout` | String\|ui.Panel.Layout | The root panel's new layout. |