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

Latest commit

 

History

History
40 lines (28 loc) · 1.42 KB

README.md

File metadata and controls

40 lines (28 loc) · 1.42 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.

.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