Content tabs that toggle content when clicked.
npm install @wearediagram/wsol.tabsContent tabs that toggle content when clicked.
Install via Bower:
```
$ bower install websolutions/tabs --save
The most basic example follows this DOM structure: Tab Content 1 Tab Content 2
` html`
Tab Title 1
Tab Title 2
And is initialized like so:
` javascript`
$(".tabs").wsol_tabs();
The plugin can also be removed afterwards:
` javascript`
$(".tabs").data("wsol.tabs").destroy();
Or manually changed to a specific tab (index or ID):
` javascript`
$(".tabs").data("wsol.tabs").changeTab(0);
The jQuery plugin supports a number of configuration options:
Option | Type | Description | Default
----------------------------|----------|------------------------------------------------------------------|--------
navigationLinkSelector | String | Selector for tab navigation links | > .tab-navigation > li > acontainerSelector | String | Selector for tab containers | > .tab-container > divselectedClass | String | Class name to apply to the selected tab link | selectedhiddenClass | String | Class name to apply to non-selected tabs | hiddenaccordionHiddenClass | String | Class name to apply to non-selected accordions | accordion-hiddenautoScroll` | Boolean | Keep active tab/accordion in viewport on change | true