Grid
Columns without a frame or heading, e.g. to put a few fields side by side in a single column section.
use Anvil\Schema\Layout\Grid;
Grid::make(3, [ TextInput::make('zip')->maxLength(10), TextInput::make('city')->maxLength(100)->columnSpan(2),]),
// equivalentGrid::make(3)->schema([...]),| Method | Effect | Default |
|---|---|---|
Grid::make($columns, $components) |
columns (1 to 4) and the components | 2 columns |
schema([...]) |
the components | |
hiddenOn(...) |
hides the grid and its fields in operations | |
columnSpan(n) |
width of the grid itself in its container | full width |
The grid has no own markup on the detail page either: the fields are shown in the same columns, read-only. See Columns.