Announcement: All noncommercial projects registered to use Earth Engine beforeApril 15, 2025 mustverify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.

ui.Select

A printable select menu with a callback.

UsageReturns
ui.Select(items,placeholder,value,onChange,disabled,style)ui.Select
ArgumentTypeDetails
itemsList<Object>, optionalThe list of options to add to the select. Defaults to an empty array.
placeholderString, optionalThe placeholder shown when no value is selected. Defaults to "Select a value...".
valueString, optionalThe select's value. Defaults to null.
onChangeFunction, optionalThe callback to fire when an item is selected. The callback is passed the currently selected value and the select widget.
disabledBoolean, optionalWhether the select is disabled. Defaults to false.
styleObject, optionalAn object of allowed CSS styles with their values to be set for this widget. See style() documentation.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-08 UTC.