Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


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


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!

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

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

jouvrard pro answered 6 years ago


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

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

  • ForumUser: 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
Tags