Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/subzane/tabby

Adding ajax and history support to Bootstraps standard tab navigation
https://github.com/subzane/tabby

Last synced: about 1 month ago
JSON representation

Adding ajax and history support to Bootstraps standard tab navigation

Awesome Lists containing this project

README

        

Tabby.js 0.1.1
==================
Tabby.js is a tiny (1.1kb) tab menu script with support for AJAX loading of content and history navigation. It will also take advantage of hashed URLs, meaning: If you click one tab, then another and use the back button the previous tab will be selected. It takes advantage of Bootstrap markup and can very easily replace the normal Bootstrap javascript tabs.


tabby.js

##Browser Support
* Google Chrome
* Internet Explorer 9+
* Firefox
* Safari 7+

##Installation
```
bower install tabbyjs --save
```

###Setup
```html

```
##Usage
Tabby works exactly like the Tabs included in Bootstrap except that tabby also has support for history and ajax loading content. Just include the script on your page with the tabs and you're done!
As Bootstrap uses `data-toggle="tab"` tabby instead uses `data-tabbytoggle="tab"`. That's all you need to change.

###Using AJAX to load content
The tab panel you wish to load its content using AJAX need to have the attribute `data-ajax="myfile.html"`

###Typical setup
This could be your typical script setup for some tabs.

```html



This is a normal tab. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Maecenas faucibus mollis interdum.





```

##change log
####0.1.0
* First real public release