Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum
15 April 2025 harus
memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
ui.root.insert
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menyisipkan widget ke panel root pada indeks yang ditentukan.
Menampilkan panel root.
Penggunaan | Hasil |
---|
ui.root.insert(index, widget) | ui.Panel |
Argumen | Jenis | Detail |
---|
index | Angka | Indeks tempat widget akan disisipkan. |
widget | ui.Widget | Widget yang akan disisipkan. |
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\u003eui.root.insert()\u003c/code\u003e function adds a specified widget to the main user interface panel at a designated index.\u003c/p\u003e\n"],["\u003cp\u003eThis function returns the root panel itself, allowing for method chaining.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can control widget placement by specifying the index within the root panel.\u003c/p\u003e\n"],["\u003cp\u003eThe function accepts a numerical index and a \u003ccode\u003eui.Widget\u003c/code\u003e object as parameters.\u003c/p\u003e\n"]]],["The core content details how to insert a widget into the root panel. `ui.root.insert(index, widget)` is used, returning `ui.Panel`. The `index` argument, a number, specifies the insertion location. The `widget` argument, of type `ui.Widget`, is the element being added. The method places the widget at the designated index within the root panel, effectively modifying the panel's structure.\n"],null,["# ui.root.insert\n\n\u003cbr /\u003e\n\nInserts a widget into to the root panel at the specified index.\n\n\u003cbr /\u003e\n\nReturns the root panel.\n\n| Usage | Returns |\n|---------------------------------|----------|\n| `ui.root.insert(index, widget)` | ui.Panel |\n\n| Argument | Type | Details |\n|----------|-----------|------------------------------------------|\n| `index` | Number | The index at which to insert the widget. |\n| `widget` | ui.Widget | The widget to insert. |"]]