Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.Panel.setLayout
Stay organized with collections
Save and categorize content based on your preferences.
Sets the panel's layout.
Returns this panel.
Usage | Returns | Panel.setLayout(layout) | ui.Panel |
Argument | Type | Details | this: ui.panel | ui.Panel | The ui.Panel instance. |
layout | ui.Panel.Layout | The new layout. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["\u003cp\u003eThe \u003ccode\u003esetLayout\u003c/code\u003e method is used to define the arrangement of elements within a panel.\u003c/p\u003e\n"],["\u003cp\u003eThis method, when called, returns the \u003ccode\u003eui.Panel\u003c/code\u003e instance itself, allowing for method chaining.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify the new layout using a \u003ccode\u003eui.Panel.Layout\u003c/code\u003e object passed as an argument to the \u003ccode\u003esetLayout\u003c/code\u003e method.\u003c/p\u003e\n"]]],["`Panel.setLayout(layout)` modifies the layout of a `ui.Panel` instance. The method takes a `ui.Panel.Layout` object as an argument, which dictates the new arrangement of the panel's contents. This method returns the modified `ui.Panel` instance itself, allowing for method chaining. The `ui.panel` instance is a required argument.\n"],null,["# ui.Panel.setLayout\n\n\u003cbr /\u003e\n\nSets the panel's layout.\n\n\u003cbr /\u003e\n\nReturns this panel.\n\n| Usage | Returns |\n|---------------------------|----------|\n| Panel.setLayout`(layout)` | ui.Panel |\n\n| Argument | Type | Details |\n|------------------|-----------------|------------------------|\n| this: `ui.panel` | ui.Panel | The ui.Panel instance. |\n| `layout` | ui.Panel.Layout | The new layout. |"]]