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.Panel.insert
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Inserisce un widget nel pannello in corrispondenza dell'indice specificato.
Restituisce questo pannello.
Utilizzo | Resi |
---|
Panel.insert(index, widget) | ui.Panel |
Argomento | Tipo | Dettagli |
---|
questo: ui.panel | ui.Panel | L'istanza ui.Panel. |
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\u003einsert\u003c/code\u003e function adds a ui.Widget to a ui.Panel at a specified index.\u003c/p\u003e\n"],["\u003cp\u003eThis function returns the modified ui.Panel, allowing for method chaining.\u003c/p\u003e\n"],["\u003cp\u003eBoth the insertion index and the widget to be inserted need to be provided as arguments.\u003c/p\u003e\n"]]],["The `Panel.insert()` method adds a widget to a panel at a specific index. It requires an `index` (number) to determine the insertion point and a `widget` (ui.Widget) to be inserted. This method operates on a `ui.Panel` instance and modifies it directly. Upon completion, it returns the updated `ui.Panel` object.\n"],null,["# ui.Panel.insert\n\n\u003cbr /\u003e\n\nInserts a widget into to the panel at the specified index.\n\n\u003cbr /\u003e\n\nReturns this panel.\n\n| Usage | Returns |\n|-------------------------------|----------|\n| Panel.insert`(index, widget)` | ui.Panel |\n\n| Argument | Type | Details |\n|------------------|-----------|------------------------------------------|\n| this: `ui.panel` | ui.Panel | The ui.Panel instance. |\n| `index` | Number | The index at which to insert the widget. |\n| `widget` | ui.Widget | The widget to insert. |"]]