公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取。如未在 2025 年 9 月 26 日前完成驗證,存取權可能會暫停。
ui.Panel
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
可容納其他小工具的小工具。使用面板建構巢狀小工具的複雜組合。
面板可以新增至 ui.root,但無法使用 print() 列印至控制台。
| 用量 | 傳回 |
|---|
ui.Panel(widgets, layout, style) | ui.Panel |
| 引數 | 類型 | 詳細資料 |
|---|
widgets | List<ui.Widget>|ui.Widget,選用 | 要新增至面板的小工具清單或單一小工具。預設為空陣列。 |
layout | String|ui.Panel.Layout,選用 | 這個面板要使用的版面配置。如果傳入字串,系統會將其視為該名稱的版面配置建構函式捷徑。預設值為「flow」。 |
style | 物件 (選用) | 允許的 CSS 樣式物件,以及要為這個小工具設定的值。請參閱 style() 說明文件。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],["Panels, which are widgets that can contain other widgets, are created using `ui.Panel()`. They accept an optional list of `widgets`, a `layout` (defaulting to 'flow'), and a `style` object for CSS styling. Panels can be added to `ui.root` but cannot be printed using `print()`. The `layout` argument can be a string representing a shortcut to a layout constructor. Panels facilitate the construction of complex, nested widget structures.\n"]]