Accordion close by default


Topic: Accordion close by default

jouvrard pro asked 6 years ago

Hello, I want to use accodions in my project for mobile, but I'd like them to be close by default, and I didn't see anything to do this in the accordion page. Is it possible? Thanks, Jerome Ouvrard

Piotr Glejzer staff answered 6 years ago

Hi, do you mean something like this? Accordion example Best, Piotr

jouvrard pro answered 6 years ago

That's exactly what I want, thank you! :)

jouvrard pro answered 6 years ago

I did almost the same thing to test yesterday and it works fine. :) I thought I had to change "aria-expanded="false" too, but it doesn't seem to be the case in your example. Again, thanks a lot for your help, and your "snippets" is very usefull!

jouvrard pro answered 6 years ago

Just an other question: is it possible to close a accordion or open it dépends on the screen wide? A sort of "collapse-md"? Thanks

Piotr Glejzer staff answered 6 years ago

Hi, I modified an example above with accordion. Is that what you expect? Accordion - the same link ;) Best, Piotr
Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.10
  • Device: PC/Mobile
  • Browser: All
  • OS: All
  • Provided sample code: No
  • Provided link: No