Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum
15 April 2025 harus
memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
ui.Panel.clear
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menghapus semua widget dari panel.
Menampilkan panel ini.
Penggunaan | Hasil |
---|
Panel.clear() | ui.Panel |
Argumen | Jenis | Detail |
---|
ini: ui.panel | ui.Panel | Instance ui.Panel. |
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\u003e\u003ccode\u003ePanel.clear()\u003c/code\u003e removes all widgets from the specified panel.\u003c/p\u003e\n"],["\u003cp\u003eThis method returns the ui.Panel object, allowing for method chaining.\u003c/p\u003e\n"],["\u003cp\u003eIt is used to reset the panel to its initial state, effectively removing existing UI elements.\u003c/p\u003e\n"]]],["The `Panel.clear()` method removes all widgets from a specified `ui.Panel` instance. This method directly modifies the panel by clearing its content. It takes a `ui.Panel` instance as input and returns the same `ui.Panel` object after the widgets have been removed. No arguments beside the panel itself are required. This method's primary action is to empty the panel of all widgets.\n"],null,["# ui.Panel.clear\n\n\u003cbr /\u003e\n\nRemoves all widgets from the panel.\n\n\u003cbr /\u003e\n\nReturns this panel.\n\n| Usage | Returns |\n|-----------------|----------|\n| Panel.clear`()` | ui.Panel |\n\n| Argument | Type | Details |\n|------------------|----------|------------------------|\n| this: `ui.panel` | ui.Panel | The ui.Panel instance. |"]]