# ui.Panel.add

<br />

Adds a widget to the panel.

<br />

Returns this panel.

| Usage | Returns |
|---|---|
| `Panel.add(widget)` | ui.Panel |

| Argument | Type | Details |
|---|---|---|
| this: `ui.panel` | ui.Panel | The ui.Panel instance. |
| `widget` | ui.Widget | The widget to be added. |