Good afternoon,
I am quite new to Filament and was wondering if there is a vertical grow parameter / possibility for the Grid component, currently I have a grid with 2 columns which includes a large amount of variable Section components, I am trying to make all sections in each row full weight, so that section height can't differ within rows. I tried giving the h-full class to the section components but that didn't seem to work.
#`Grid` vertical grow?
6 messages · Page 1 of 1 (latest)
Grid of two, then group left an right, each group with sections will be without gap
euhm I am working with a ton of variable sections, its a $items->map which generates all sections, I could make two columns of all the data but I feel like that would be extra messy code which isn't needed? or is this really the only way of achieving this
I think, its realisable..
return $schema
->components([
Grid::make()
->schema([
Group::make()
->schema([
// left
Section::make('Basic Information')
->columns(4)
->schema([
//
]),
// left
Section::make('Social Media & User')
->schema([
//
]),
]),
Group::make()
->schema([
// right
Section::make('Content')
->schema([
//
]),
// right
Section::make('Person Information')
->schema([
//
]),
]),
])
->columnSpanFull(),
]);
yea but like I said, my schemas are variables, like:
Grid::make()
->columns(2)
->columnSpanFull()
->schema(collect($entries)->map(
fn($item) => Section::make($item['name'])
)->toArray()),```
I could split the variables in to two seperates ones checking even numbers etc, but is that really the only way possible?