Anuncio: Todos los proyectos no comerciales registrados para usar Earth Engine antes del
15 de abril de 2025 deben
verificar su elegibilidad no comercial para mantener el acceso a Earth Engine.
ui.Panel.Layout.flow
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Devuelve un diseño que coloca sus widgets en un flujo, ya sea horizontal o vertical.
De forma predeterminada, los widgets ocupan su espacio natural dentro de un panel de diseño de flujo. Establece la propiedad de diseño "stretch" en un widget agregado para que se estire y llene el espacio disponible en la dirección pertinente:
- Horizontal, vertical o ambas
Cuando se estiran varios widgets, el espacio disponible se divide equitativamente entre ellos. Los paneles son widgets en sí mismos y se pueden estirar especificando una propiedad de diseño "stretch".
Uso | Muestra |
---|
ui.Panel.Layout.flow(direction, wrap) | ui.Panel.Layout |
Argumento | Tipo | Detalles |
---|
direction | Cadena, opcional | Es la dirección del flujo. Puede ser "horizontal" o "vertical". El valor predeterminado es “vertical”. |
wrap | Booleano, opcional | Indica si se deben ajustar los elementos secundarios en el diseño si hay demasiados para mostrarlos en una sola línea. La configuración predeterminada es "false". |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[null,null,["Última actualización: 2025-07-26 (UTC)"],[[["\u003cp\u003eThe \u003ccode\u003eui.Panel.Layout.flow()\u003c/code\u003e function arranges widgets within a panel in either a horizontal or vertical flow.\u003c/p\u003e\n"],["\u003cp\u003eWidgets naturally occupy their required space but can be stretched to fill available space using the "stretch" style property.\u003c/p\u003e\n"],["\u003cp\u003eWhen multiple widgets have the "stretch" property, the available space is divided equally among them, including panels which are also widgets.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eflow\u003c/code\u003e layout can be customized using the \u003ccode\u003edirection\u003c/code\u003e argument for flow orientation (horizontal or vertical) and the \u003ccode\u003ewrap\u003c/code\u003e argument to control wrapping of overflowing widgets.\u003c/p\u003e\n"]]],[],null,["# ui.Panel.Layout.flow\n\n\u003cbr /\u003e\n\nReturns a layout that places its widgets in a flow, either horizontal or vertical.\n\n\u003cbr /\u003e\n\nBy default, widgets take up their natural space within a flow layout panel. Set the \"stretch\" style property on an added widget to stretch it to fill available space in the relevant direction:\n\n- horizontal, vertical, both\n\nWhen multiple widgets are stretched, the available space is split equally among them. Panels are widgets themselves and can be stretched by specifying a \"stretch\" style property.\n\n| Usage | Returns |\n|--------------------------------------------------|-----------------|\n| `ui.Panel.Layout.flow(`*direction* `, `*wrap*`)` | ui.Panel.Layout |\n\n| Argument | Type | Details |\n|-------------|-------------------|------------------------------------------------------------------------------------------------------|\n| `direction` | String, optional | The direction of the flow. One of 'horizontal' or 'vertical'. Defaults to 'vertical'. |\n| `wrap` | Boolean, optional | Whether to wrap children in the layout if there are too many to show in one line. Defaults to false. |"]]