1
I’m working on an Rails app. I’m currently working on the front end. I have a table of how it behaves on large screens.
but when reducing the screen (cell phone size) I would like it to be in acordion style with dropdown only skin thead Name.
All other fields ("email, phone, origin, status and code") would be hidden and only show when the user clicked on the Name he wanted, then would dropdown the rest of the information, showing one below the other.
Does anyone know how to do it? I know almost nothing about JS, and I think I will have to do a good part in it right...
In fact it doesn’t need JS, you can have a "hidden" dropdown that only appears when the screen is small. So at the same time you show the Dropdown on small screens you can also hide the table on those screens. All with @media and CSS, if you want I put together a simple example for you.
– hugocsl
If it is possible to assemble the example I would appreciate! Thank you
– Rodrigo Barreto
I posted an example, it just switches the display values in CSS when the screen is smaller. For you to test copy the code in your project and do a test decreasing and increasing the Browser window
– hugocsl