Arrange sections in columns
Is there a way to arrange infolist sections in columns.
e.g.
+-------------+ +-------------+ +-------------+ +-------------+
| Section 1 | | Section 4 | | Section 5 | | Section 7 |
| | | | | | | | | | | | | | +-------------+ | | +-------------+ | | | Section 8 | +-------------+ +-------------+ +-------------+ | Section 2 | | Section 6 | +-------------+ | | | Section 3 | +-------------+ | | +-------------+
I've tried using Grid but it seems to only work for rows.
| | | | | | | | | | | | | | +-------------+ | | +-------------+ | | | Section 8 | +-------------+ +-------------+ +-------------+ | Section 2 | | Section 6 | +-------------+ | | | Section 3 | +-------------+ | | +-------------+
I've tried using Grid but it seems to only work for rows.
2 Replies
Solution
Think I've figured it out:
InfoList::make()
->columns(4)
->schema([
Grid::make(1)
->columnspan(1)
->schema([
Section::make('Section 1')
->columns(1),
Section::make('Section 2')
->columns(1),
Section::make('Section 3')
->columns(1),
]),
Grid::make(1)
->columnspan(1)
->schema([
Section::make('Section 4')
->columns(1),
]),
Grid::make(1)
->columnspan(1)
->schema([
Section::make('Section 5')
->columns(1),
Section::make('Section 6')
->columns(1),
]),
Grid::make(1)
->columnspan(1)
->schema([
Section::make('Section 7')
->columns(1),
Section::make('Section 8')
->columns(1),
]),
])
Looks good