F
Filament15mo ago
Matthew

How to show attachments in FIleUpload in a grid format

Is it possible to show the attachments in a grid of 3 columns and not just 1 under the other?
No description
8 Replies
Matthew
MatthewOP15mo ago
Or at least take the least amount of space horizontally I did this, but its not loading
FileUpload::make("attachment")
->multiple()
->reorderable()
->panelAspectRatio('2:1')
->panelLayout('integrated'),
FileUpload::make("attachment")
->multiple()
->reorderable()
->panelAspectRatio('2:1')
->panelLayout('integrated'),
Matthew
MatthewOP15mo ago
Just this
No description
Vp
Vp15mo ago
->grid()->columns(3) not sure tho
Matthew
MatthewOP15mo ago
nope, grid() doesnt exist
Vp
Vp15mo ago
Yes, it should be ->panelLayout('grid') v3 is different 😆
Matthew
MatthewOP15mo ago
Niceee thank you. This worked. How did you discover this though?
Vp
Vp15mo ago
Some other people already asked in this channel, so I search in #❓┊help
Want results from more Discord servers?
Add your server