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
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.
You're right, I wanted to try to bring some specific information through the accordion to be more intuitive for the user
There’s also a11y to consider with tables. So don’t over complicate unless absolutely necessary.
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!
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.
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.
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.
You're right, sometimes we have to make things easier, thanks! 🙂
It’s still just laravel. Don’t over complicate it.