Skip to content

Commit

Permalink
Add defaultly active panels as option in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Hug committed Jan 27, 2015
1 parent 661c8d2 commit 661db93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ A declarative tabbed panels JS module

- To make panels closeable add a "**closeable**" class to the `.tabbed-panels` wrapper.
- To make panels hover over other page content add a "**hovering**" class to the `.tabbed-panels` wrapper. Combining the closeable and hovering classes will make the panels close when you click elsewhere on the page.
- To have a panel defaultly be open, add an "**active**" class to the panel, its tab, and its `.tabbed-panels` wrapper.

## Browser support
Requires `getElementsByClassName`, `classList`, `forEach`, and `filter`.

0 comments on commit 661db93

Please sign in to comment.