Layout
Static methods that arrange interface content into columns, rows, grids, stacks, overlays, padding and fixed sizes. Each method takes a callback that renders the content placed inside the layout.
This page is a pure reference. For how the framework fits together, see the Guide.
Layout- arrange content into columns, rows, grids, stacks, overlays and fixed sizes.
Layout
The main class: static methods that each render a layout and call a content callback to fill it. Provides the same functionality as UiLayout as static class methods. Listed alphabetically.
Column
Layout::Column(callable $content): void
Display column layout.
| Name | Type | Description |
|---|---|---|
$content | callable | Callback that renders column content. |
Returns void
Grid
Layout::Grid(int $columnCount, callable $content): void
Display grid layout.
| Name | Type | Description |
|---|---|---|
$columnCount | int | Number of columns in the grid. |
$content | callable | Callback that renders grid content. |
Returns void
Height
Layout::Height(float $height, callable $content): void
Display height layout.
| Name | Type | Description |
|---|---|---|
$height | float | Fixed height. |
$content | callable | Callback that renders content. |
Returns void
Overlay
Layout::Overlay(callable $content): void
Display overlay layout.
| Name | Type | Description |
|---|---|---|
$content | callable | Callback that renders overlay content. |
Returns void
Padding
Layout::Padding(callable $content): void
Display padding layout.
| Name | Type | Description |
|---|---|---|
$content | callable | Callback that renders padding content. |
Returns void
Row
Layout::Row(callable $content): void
Display row layout.
| Name | Type | Description |
|---|---|---|
$content | callable | Callback that renders row content. |
Returns void
Size
Layout::Size(float $width, float $height, callable $content): void
Display size layout (fixed dimensions).
| Name | Type | Description |
|---|---|---|
$width | float | Fixed width. |
$height | float | Fixed height. |
$content | callable | Callback that renders content. |
Returns void
Stack
Layout::Stack(callable $content): void
Display stack layout.
| Name | Type | Description |
|---|---|---|
$content | callable | Callback that renders stack content. |
Returns void
Stretch
Layout::Stretch(?callable $content = null): void
Display stretch layout.
| Name | Type | Description |
|---|---|---|
$content | ?callable | Optional callback that renders stretch content. |
Returns void
Width
Layout::Width(float $width, callable $content): void
Display width layout.
| Name | Type | Description |
|---|---|---|
$width | float | Fixed width. |
$content | callable | Callback that renders content. |
Returns void