To open the tab bar on the default accordion bar

By default, the accordion panel opens only the first tab, in the case of multiple tabs. I want to open custom index tabs by default.

+4
source share
1 answer

In the case of 3 tabs on the accordion panel, I tried to follow and worked.

<p:accordionPanel multiple="true" activeIndex="1,2">

accordion panel tabs start at index 0, so use β€œ1,2” in the activeIndex attribute to open the 2nd and 3rd tabs by default.

+8
source

All Articles