Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

avoidwork/abaaso.tabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

abaaso.tabs

abaaso.tabs is an HTML5 module that makes creating UI tabs with hash routing extremely easy!

If you do not provide routing listeners when creating tabs, stubs will be set in their place. This is done so application states are not impacted.

How do you identify which pair of UL & Section Elements belong to which tab/route?

Each pair has a "data-hash" property set to the route end-point it belongs to.

Sample

$("#stage").tabs({User : ["Details", "Projects", "Files", "Folders", "Links", "Versions", "Subscriptions"], Organization : null});

Syntax

$.tabs.create($("#target"), ["Tab 1", "Tab 2"])

Creates a tab element structure in #target with implicit routing handlers

$.tabs.create($("#target"), {"Tab 1": function () {…}, "Tab 2": function () {…}})

Creates a tab element structure in #target with explicit routing handlers

$("#target").tabs(…)

Element.prototype is augmented with $.tabs.create()

CSS Classes

.active

Identifies "active" tab routing.

.disabled

Disables the route when placed on the anchor which triggers the route.

.hidden

Hides inactive tab Elements; this should set "display:none;".

.tab

Identifies UL & Section Elements that hold tab related Elements.

Information

License

abaaso.route is licensed under BSD-3 https://raw.github.com/avoidwork/abaaso.tabs/master/LICENSE

Copyright

Copyright (c) 2012, Jason Mulligan jason.mulligan@avoidwork.com

About

Tabbed interface module (support ends at abaaso 3.9.x)

Resources

License

Stars

Watchers

Forks

Packages

No packages published