# ui.Panel.insert

<br />

Inserts a widget into to the panel at the specified index.

<br />

Returns this panel.

| Usage | Returns |
|---|---|
| `Panel.insert(index, widget)` | ui.Panel |

| Argument | Type | Details |
|---|---|---|
| this: `ui.panel` | ui.Panel | The ui.Panel instance. |
| `index` | Number | The index at which to insert the widget. |
| `widget` | ui.Widget | The widget to insert. |