> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell-universal/es/aplicaciones/components/layout/grid-layout.md).

# Diseño de cuadrícula

Diseñe disposiciones de cuadrícula con arrastrar y soltar en aplicaciones de PowerShell Universal, organizando los componentes de forma visual y conservando las disposiciones personalizadas por el usu

## Grid Layout

El componente Grid Layout resulta útil para definir disposiciones de forma visual. Puede arrastrar y soltar componentes mediante la interfaz web para definir automáticamente la disposición como JSON.

## Diseño de disposiciones

Puede emplear el parámetro -Design para configurar la disposición de su página. Esto permite arrastrar y soltar de forma dinámica los componentes que coloque dentro del contenido de la disposición de cuadrícula. A medida que arrastra y redimensiona los componentes, la disposición se copiará en su portapapeles. Nota: todos los componentes deben poseer un -Id estático

```
New-UDGridLayout -Content { 1..10 | ForEach-Object { New-UDPaper -Id "Paper$" -Content { New-UDTypography -Text $ } -Elevation 5 } } -Design
```

## Uso de disposiciones

Una vez que haya configurado la disposición según sus necesidades, puede pegar el JSON en su script y asignarlo con el parámetro -Layout. Elimine el parámetro -Design para fijar los elementos en su sitio.

```
$Layout = '{"lg":[{"w":7,"h":7,"x":5,"y":0,"i":"grid-element-Paper1","moved":false,"static":false},{"w":7,"h":5,"x":5,"y":7,"i":"grid-element-Paper2","moved":false,"static":false},{"w":1,"h":1,"x":0,"y":0,"i":"grid-element-Paper3","moved":false,"static":false},{"w":1,"h":1,"x":0,"y":1,"i":"grid-element-Paper4","moved":false,"static":false},{"w":1,"h":1,"x":0,"y":2,"i":"grid-element-Paper5","moved":false,"static":false},{"w":1,"h":1,"x":0,"y":3,"i":"grid-element-Paper6","moved":false,"static":false},{"w":1,"h":1,"x":0,"y":4,"i":"grid-element-Paper7","moved":false,"static":false},{"w":1,"h":1,"x":0,"y":5,"i":"grid-element-Paper8","moved":false,"static":false},{"w":1,"h":1,"x":0,"y":6,"i":"grid-element-Paper9","moved":false,"static":false},{"w":1,"h":1,"x":0,"y":7,"i":"grid-element-Paper10","moved":false,"static":false}]}' 
New-UDGridLayout -Content { 1..10 | ForEach-Object { New-UDPaper -Id "Paper$" -Content { New-UDTypography -Text $ } -Elevation 5 } } -Layout $Layout
```

## Permitir que los usuarios modifiquen las disposiciones

Puede permitir que sus usuarios modifiquen las disposiciones de forma dinámica mediante los parámetros -Draggable, -Resizable y -Persist. Los cambios de disposición se almacenan localmente, de modo que la próxima vez que cada usuario visite una página, esta se cargará con la disposición que haya elegido.

```
New-UDGridLayout -Content { 1..10 | ForEach-Object { New-UDPaper -Id "Paper$" -Content { New-UDTypography -Text $ } -Elevation 5 } } -Draggable -Resizable -Persist
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/powershell-universal/es/aplicaciones/components/layout/grid-layout.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
