ui.data.ActiveList.insert

Inserts an element at the specified index and shifts the rest of the list. If the specified index is greater than the length of the list, the element will be appended to the list.

Returns this ui.data.ActiveList.

UsageReturns
ActiveList.insert(index, el)ui.data.ActiveList
ArgumentTypeDetails
this: ui.data.activelistui.data.ActiveList

The ui.data.ActiveList instance.

indexNumber

The index at which to insert the element.

elObject

The element to insert.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!