ui.Map.Linker.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 |
---|
Linker.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 you to modify an element at a specific index within a ui.data.ActiveList."],["If the provided index goes beyond the existing elements, the new element is appended to the end of the list."],["It always returns the original ui.data.ActiveList instance, enabling method chaining."]]],["The `set` function modifies a `ui.data.ActiveList` instance. It places an element (`el`) at a given `index`. If the `index` is beyond the current list's bounds, the element is appended to the end. The function returns the modified `ui.data.ActiveList` instance itself. It requires an index (Number) and an element (Object) as arguments, where the index will be overwritten by the provided element.\n"]]