Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.33 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.33 KB

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.

.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 http://www.opensource.org/licenses/BSD-3-Clause

Copyright

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