From 661db930b64b4b8a99a8832c634c31d12f947c66 Mon Sep 17 00:00:00 2001 From: Daniel Hug Date: Tue, 27 Jan 2015 10:18:43 -0800 Subject: [PATCH] Add defaultly active panels as option in README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 35e43cb..b3043df 100644 --- a/README.md +++ b/README.md @@ -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`.