F
Filamentβ€’6mo ago
Kyle

FilePond seems to have a grid view feature. Is there any way to enable it in Filament?

Client is being annoying and wants the multiple images uploaded to be in a row instead of a column. FilePond seems to have a grid feature which is probably what the client wants but I can't seem to find how to enable it in Filament. Is there a hidden setting in Filament I can use?
5 Replies
Alexandre
Alexandreβ€’6mo ago
πŸ‘‹ Look at the doc here : https://pqina.nl/filepond/docs/api/style/ Have you tried with CSS?
.filepond--item {
width: calc(50% - 0.5em);
}
.filepond--item {
width: calc(50% - 0.5em);
}
Easy File Uploading With JavaScript | FilePond
A JavaScript library that can upload anything you throw at it, optimizes images for faster uploads, and offers a great, accessible, silky smooth user experience.
Medo
Medoβ€’6mo ago
You can use ->panelLayout('grid') and it works ^^ Thank me later.
ericmp
ericmpβ€’6mo ago
just checked it out in a filament v2 version i got: ->panelLayout('grid') exactly
Medo
Medoβ€’6mo ago
Thank you mate β™₯
Kyle
KyleOPβ€’6mo ago
Damn, I was specifically checking that out but the documentation said,
Can be either integrated, compact, and/or circle
So I just gave up when neither of the three did what I wanted 😭 Didn't bother checking the v2 docs since I thought it was outdated and I'm using v3 anyway. Thank you, @Medo !
Want results from more Discord servers?
Add your server