ui.data.ActiveList
An array-like container for data for use in UI components.
When a ui.data.ActiveList (e.g. Map.layers()) is updated, the component it belongs to is updated as well. For example, Map.layers().add(myLayer) will add myLayer as a layer on the map.
Usage | Returns | ui.data.ActiveList(list) | ui.data.ActiveList |
Argument | Type | Details | list | List, optional | An optional list to initialize with. |
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."],[[["`ui.data.ActiveList` acts as a container for data used by UI components."],["Changes to an `ActiveList` directly update the associated UI component, like adding a layer to a map with `Map.layers().add()`."],["It's initialized using `ui.data.ActiveList(list)` where `list` is an optional initial data list."]]],[]]