Skip to content

Commit

Permalink
Add description of new option.accordion to README file
Browse files Browse the repository at this point in the history
  • Loading branch information
mattez committed Aug 14, 2015
1 parent 7a9f893 commit 8389d8e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ To activate tab collapse just include **bootstrap-tabcollapse.js** somewhere in

$('#myTab').tabCollapse();

By default tab collapse behave like accordion (always only active panel is visible / uncollapsed).
If you want to use simple collapse (more panels can be visible/uncollapsed at the same time),
set option "accordion" to "false":

$('#myTab').tabCollapse({
accordion: false
});

If you want to specify the class that is given to accordion and tabs components you can do so by passing options to `tabCollapse`:

$('#myTab').tabCollapse({
Expand Down

0 comments on commit 8389d8e

Please sign in to comment.