Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum
15 April 2025 harus
memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
ui.Select.setPlaceholder
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menetapkan teks placeholder pilihan, yang ditampilkan saat tidak ada nilai yang dipilih.
Menampilkan pilihan ini.
Penggunaan | Hasil |
---|
Select.setPlaceholder(placeholder) | ui.Select |
Argumen | Jenis | Detail |
---|
ini: ui.select | ui.Select | Instance ui.Select. |
placeholder | String | Teks placeholder pilihan. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 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. |"]]