F
Filament13mo ago
urbycoz

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.
Solution:
Think I've figured it out: InfoList::make() ->columns(4) ->schema([...
Jump to solution
2 Replies
Solution
urbycoz
urbycoz13mo ago
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), ]), ])
Dennis Koch
Dennis Koch13mo ago
Looks good
Want results from more Discord servers?
Add your server