F
Filament3mo ago
Mateus

Accordion on the table

Hi! Is there any way to add an accordion to the table, so that each item in the table has an accordion?
9 Replies
awcodes
awcodes3mo ago
I’m sure it can be done with a custom column, but doesn’t make sense semantically for a table. Kinda defeats the purpose of a table.
Mateus
MateusOP3mo ago
You're right, I wanted to try to bring some specific information through the accordion to be more intuitive for the user
awcodes
awcodes3mo ago
There’s also a11y to consider with tables. So don’t over complicate unless absolutely necessary.
Mateus
MateusOP3mo ago
Really, my main idea was to bring this information with the accordio, but I will consider bringing it in a table action with the table repeater, as it takes up much less space than the traditional repeater, thank you!
awcodes
awcodes3mo ago
So it’s not actually a table but a form field.? The principle still applies I think though. The right tool for the job still matters. It’s not always about appearance. There are other implications.
Mateus
MateusOP3mo ago
I have packages where I link materials to them through the table repeater, I wanted to be able to bring these materials to the table through the accordion, but I could also bring the materials as I said above, which would be a simpler solution.
awcodes
awcodes3mo ago
I think an action with a view would be better than an accordion. But it’s up to you. It can certainly be an accordion but to be a11y compliant I think it will be more complex than it needs to be. Especially in the context of a repeater or a table repeater.
Mateus
MateusOP3mo ago
You're right, sometimes we have to make things easier, thanks! 🙂
awcodes
awcodes3mo ago
It’s still just laravel. Don’t over complicate it.
Want results from more Discord servers?
Add your server