Collapsible Panel Group Sample


By default the panels in a collapsible panel group are open.

Panel 1

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Panel 2

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Panel 3

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


To start off with all panels closed, use the "contentIsOpen" constructor option with a value of false.

Panel 1

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Panel 2

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Panel 3

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


You can also turn off animation by using the enableAnimation constructor option with a value of false.

Panel 1

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Panel 2

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Panel 3

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


You can also programatically control the open/close state of a specific panel:

or all of the panels:

Panel 1
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Content for Panel 1 goes here!
Panel 2
Content for Panel 2 goes here!
Content for Panel 2 goes here!
Content for Panel 2 goes here!
Content for Panel 2 goes here!
Content for Panel 2 goes here!
Content for Panel 2 goes here!
Content for Panel 2 goes here!
Content for Panel 2 goes here!
Content for Panel 2 goes here!
Content for Panel 2 goes here!
Content for Panel 2 goes here!
Panel 3
Content for Panel 3 goes here!
Content for Panel 3 goes here!
Content for Panel 3 goes here!
Panel 4
Content for Panel 4 goes here!
Content for Panel 4 goes here!
Content for Panel 4 goes here!
Content for Panel 4 goes here!
Content for Panel 4 goes here!
Content for Panel 4 goes here!
Content for Panel 4 goes here!
Content for Panel 4 goes here!
Content for Panel 4 goes here!
Content for Panel 4 goes here!
Content for Panel 4 goes here!
Content for Panel 4 goes here!
Panel 5
Content for Panel 5 goes here!
Content for Panel 5 goes here!
Content for Panel 5 goes here!
Content for Panel 5 goes here!
Content for Panel 5 goes here!