ui.data.ActiveList.set
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.
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. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["The `set` method allows modification of an element at a specific index within a `ui.data.ActiveList`."],["If the given index is beyond the current list's bounds, the provided element is appended to the end."],["`set` returns the original `ui.data.ActiveList` instance, enabling method chaining."]]],[]]