Anuncio: Todos los proyectos no comerciales registrados para usar Earth Engine antes del
15 de abril de 2025 deben
verificar su elegibilidad no comercial para mantener el acceso a Earth Engine.
ui.Select.setPlaceholder
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Establece el texto de marcador de posición del elemento select, que se muestra cuando no se selecciona ningún valor.
Devuelve esta selección.
Uso | Muestra |
---|
Select.setPlaceholder(placeholder) | ui.Select |
Argumento | Tipo | Detalles |
---|
esta: ui.select | ui.Select | Es la instancia de ui.Select. |
placeholder | String | Es el texto del marcador de posición del elemento select. |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[null,null,["Última actualización: 2025-07-26 (UTC)"],[[["\u003cp\u003eThe \u003ccode\u003esetPlaceholder\u003c/code\u003e method allows you to define the text displayed in a select dropdown when no option is selected.\u003c/p\u003e\n"],["\u003cp\u003eThis method accepts the placeholder text as an argument and can be chained with other ui.Select methods for a fluid coding experience.\u003c/p\u003e\n"],["\u003cp\u003eIt ultimately returns the \u003ccode\u003eui.Select\u003c/code\u003e instance, enabling further method calls if desired.\u003c/p\u003e\n"]]],["The `Select.setPlaceholder()` method sets the placeholder text for a select element, displayed when no value is chosen. It accepts a string argument (`placeholder`) representing the desired text. The method, when called on a `ui.Select` instance, modifies the instance and returns the same `ui.Select` instance, allowing for method chaining. The `ui.Select` instance is passed as the argument 'this'.\n"],null,["# ui.Select.setPlaceholder\n\n\u003cbr /\u003e\n\nSets the select's placeholder text, which is shown when no value is selected.\n\n\u003cbr /\u003e\n\nReturns this select.\n\n| Usage | Returns |\n|--------------------------------------|-----------|\n| Select.setPlaceholder`(placeholder)` | ui.Select |\n\n| Argument | Type | Details |\n|-------------------|-----------|--------------------------------|\n| this: `ui.select` | ui.Select | The ui.Select instance. |\n| `placeholder` | String | The select's placeholder text. |"]]