open all tabs to p:accordion

UI Components for JSF
chaseven
Posts: 16
Joined: 13 Jan 2011, 12:49

21 Jan 2011, 20:47

Hello

someone tell me if it is possible to allow the accordion to open all the tabs?

I tried to use the attribute collapsed but it works only when I closed the tabs load

Any help is welcome
Thx

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

21 Jan 2011, 22:39

Currently accordion supports opening one tab at a time, if you need multiple active tabs create an issue as a feature request and we'll how many user votes it gets. Sounds like a good feature for 3.0.

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

24 Jan 2011, 16:06

Having all tabs open seems like it would kind of defeat the purpose of the accordion. It is like having all tabs of a TabView open at the same time.

However, you can achieve this effect by using several p:panel compoents with toggleable="true".

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 Jan 2011, 17:33

Having all tabs open seems like it would kind of defeat the purpose of the accordion.
Made sense when you put it that way.

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

24 Jan 2011, 17:42

Hi,

jQuery widget supports opening of all tabs.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

24 Jan 2011, 18:32

OK, I thought of a scenario where it might come in handy to open all tabs at once: printing.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 Jan 2011, 21:49

jQuery UI accordion does not but wijmo does. Wijmo's extension also has horizontal accordion which I like;

http://wijmo.com/Wijmo-Open/samples/#accordion|overview

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

24 Jan 2011, 23:12

Looks good

chaseven
Posts: 16
Joined: 13 Jan 2011, 12:49

26 Jan 2011, 14:03

Hello

This was my idea. use the accordion component to assemble a report

For now I will adapt by using other component

Thank you for your attention

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

16 Aug 2011, 15:06


Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 59 guests