# ui.data.ActiveList.set

<br />

Sets an element at the specified index. If the index exceeds that of the list's last element, the element will be added to the end of the list.

<br />

Returns this ui.data.ActiveList.

| Usage | Returns |
|---|---|
| `ActiveList.set(index, el)` | ui.data.ActiveList |

| Argument | Type | Details |
|---|---|---|
| this: `ui.data.activelist` | ui.data.ActiveList | The ui.data.ActiveList instance. |
| `index` | Number | The index to overwrite. |
| `el` | Object | The element to set. |