|
Tabify Plugin
|
Tabify Themes Transitions Options Usage FAQ
Welcome to Tabify
Tabify Themes
For ease of use, Tabify supports preset themes via the theme option and
user defined custom themes via the themeDef option, as well as standard CSS.
To demo a preset theme, select a theme button and see it applied immediately to the main Tabify instance.
Presets Custom CSS
Preset Themes
The easiest way to create styled tabs with Tabify is to use preset color themes. Set the theme option to one of the following presets.
// set theme to OpieTaylor
$("#header").tabify({'theme':'OpieTaylor'});
Custom Themes
Create your own custom theme array and pass it to Tabify via the themeDef option.
var themeOtis =
{
'headerBG':'#6c9219',
'headerBGFrom':'#6c9219',
'headerBGTo':'#3a542e',
'headerColor':'#e4f2ce',
'headerColorHover':'#cceecc',
'contentBG':'#c4d2ae',
'contentBGFrom':'#c4d2ae',
'contentBGTo':'#ffffff',
'contentColor':'#142207',
'border':"#c4b29e"
};
$("#header").tabify({'themeDef': themeOtis});
No Theme
Tabify allows you complete control over styling by simply setting the theme option to 'none'.
$("#header").tabify({'theme':'none'});
Content Transitions
To demo, select a transition and see it applied to the main Tabify instance.
Options
Usage Demo.html
jQuery initialization
<script type="text/javascript" src="javascript/jquery.js"></script>
<script type="text/javascript" src="javascript/jquery.tabify.js"></script>
<script>
$(document).ready(function(){
$("#tabifyHeader").tabify({
'contentClass':'tabifyContent', // associate header to content group
'theme':'BarneyFife', // preset theme
'transition':'fadeIn' // preset transition
});
});
</script>
HTML
<!-- associate tab-rel to content-id -->
<div id="tabifyHeader">
<div rel="tabify-01">Tab 1</div><div rel="tabify-02">Tab 2</div>
</div>
<div id="tabify-01" class="tabifyContent">
Tab 1 Content
</div>
<div id="tabify-02" class="tabifyContent">
Tab 2 Content
</div>
Tabify FAQ
1. I cannot style my Tabyify Header or Content even though I style the tag element directly.
Depending on the particular CSS parameter, your CSS may be overwritten in theme & themeDef modes.
A quick look at the themeDef option definition will give you an idea which CSS parameters will be overwritten.
If you want complete control, you can specify 'none' for the 'theme' option, which
prevents Tabify from applying color theme styling.
2. Does Tabify support nested tabify objects?
Yes. Remember, to use the contentClass option to specify the class name of the
content div's to be associated with a specific tab header.
3. The tabs do not wrap automatically.
Tab-wrap is not yet implemented. Coming soon.
| ||