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.
Usage | Returns |
---|---|
ActiveList.insert(index, el) | ui.data.ActiveList |
Argument | Type | Details |
---|---|---|
this: ui.data.activelist | ui.data.ActiveList | The ui.data.ActiveList instance. |
index | Number | The index at which to insert the element. |
el | Object | The element to insert. |