Annuncio: tutti i progetti non commerciali registrati per l'utilizzo di Earth Engine prima del
15 aprile 2025 devono
verificare l'idoneità non commerciale per mantenere l'accesso a Earth Engine.
ui.root.insert
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Inserisce un widget nel pannello principale all'indice specificato.
Restituisce il pannello principale.
Utilizzo | Resi |
---|
ui.root.insert(index, widget) | ui.Panel |
Argomento | Tipo | Dettagli |
---|
index | Numero | L'indice in cui inserire il widget. |
widget | ui.Widget | Il widget da inserire. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 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. |"]]