Page 1 of 1

keep Accordion all closed when opening the page

Posted: Sat Feb 27, 2021 12:09 am
by mhsouza
How do I keep Accordion all closed when I open the page and also how do I keep one area open when opening another?

When using Layout mode Bootstrap, the Active panel false option is not applied.
When using jQuery UI the option is added, but it doesn't work due to the lack of quotes, which is not being added to the compiled code (active: false ~ active: 'false').

Re: keep Accordion all closed when opening the page

Posted: Sat Feb 27, 2021 7:57 am
by Pablo
Bootstrap Accordion does not support 'false'

However, it works for jQuery UI. There should not be quotes.
Make sure the option 'collapsible' must be enabled.

See also:
https://api.jqueryui.com/accordion/#option-active

Re: keep Accordion all closed when opening the page

Posted: Sat Feb 27, 2021 11:43 pm
by mhsouza
There are really no quotes, I got confused.
It worked, but I couldn't keep one open while I open the next.

Thanks for the support.