");
$("input#setDefault").click();
$(".ifxDocsParameters tbody tr:odd").addClass("even");
});
function createExample(srcDOM, targetDOM, parentParams, childParams) {
$(srcDOM).find('ul').each(function(i){
if(i==0){$(this).attr({"class":"ifxTab","id":i+"ifxExample","ifxParams":parentParams});}
else{$(this).attr({"class":"ifxTab","id":i+"ifxExample","ifxParams":childParams});}
});
$(targetDOM).empty();
$(targetDOM).append($(srcDOM).children().clone());
//get number of subtabs
var tabs = $("table.tabLayout tbody tr.tabNumbers1 td input").val();
if (!tabs) {tabs = $(name).attr("default");}
//create the tab system starting with the child tabs
for(var i=tabs;i>=0;i--){
$('#'+i+'ifxExample').ifxTab();
}
}
function getParentName(){
var parentName = $("table.parentOptions tbody tr.parentName td input").val();
if (!parentName) {parentName = $(name).attr("default");}
return parentName;
}
function getChildName(){
var childName = $("table.childOptions tbody tr.childName td input").val();
if (!childName) {childName = $(name).attr("default");}
return childName;
}
//creates tab code as per the parameters
function createTabCode(){
var dom1 = "table.tabLayout tbody tr.tabNumbers1 td input";
var dom2 = "table.tabLayout tbody tr.tabNumbers2 td input";
//get number of tabs in parent
var tab = $(dom1).val();
if (!tab) {tab = $(dom1).attr("default");}
//get subtab values
var sub = $(dom2).val();
if (!sub) {sub = $(dom2).attr("default");}
var index = 1;
var tarr = sub.split(","); //split subtab string
//creates the entire code for the ifx tab and stores it in a string variable
var output = "
\n";
for (i=0;i\n\t\t\t"+getParentName()+"1--"+i+"\n\t\t\tContent 1-"+i+"\n";
if(tarr[i] != 0){
output += "\t\t\t
";
return output;
}
//selects the code of the tabs so it can easily be copied with ctrl+a
function selectAll(id) {
deSelectAll();
if (document.selection) {
var code = document.body.createTextRange();
code.moveToElementText(document.getElementById(id));
code.select();
} else if (window.getSelection) {
var code = document.createRange();
code.selectNodeContents(document.getElementById(id));
window.getSelection().addRange(code);
}
}
//deselects the code of the tabs
function deSelectAll() {
if (document.selection) {
document.selection.empty();
} else if (window.getSelection) {
window.getSelection().removeAllRanges();
}
}
1. Deep Link
See below example. Place the ID of the desired tab into the jquery selection brackets, followed by its parent tab's ID. Use a comma to separate IDs.
Assigns the number of tabs for the first set of tabs
numSubTabs
integer
0,6,0,3 *default, {"string of numbers"}
Assigns the number of sub-tabs under each of the parent tabs. Must be a string of comma-separated numbers with the first number pertaining to the number of sub-tabs under the first parent tab, etc.
Parent Tab
Key
Data Type
Values
Description
Select Params
parentName
string
Tabset *default, {"string"}
Assigns the name of the parent tab set
tabInitial
integer
0 *default, {integer} (number of tabs)
Initial tab to show, 0 based index
tabAlign
string
"center" *default
Assigns whether tab titles are aligned to the "center" (default), "left" or "right" of each tab.
width
integer
720 *default, {integer}
Sets the width of the tabs in pixels
tabClass
string
"ifxTabNav" *default, {"classname"}
Assigns a class style to the Tab system. You may write and add your own to the ifxTab.css or use ifxTabNav-1 or ifxTabNav-2
tabShadow
boolean
false *default
Assigns a shadow to the Tab System
ifxDeepLink
boolean
true *default, false
Turns on and off deep link ability. *See ifxDeepLink
anchor
string
window.location.hash *url anchor: "##"
Deep link anchor *<li> id
Child Tabs
Key
Data Type
Values
Description
Select Params
childName
string
Subtab *default, {"string"}
Assigns the name of the child tab set
tabAlign
string
"center" *default
Assigns whether tab titles are aligned to the "center" (default), "left" or "right" of each tab.
width
integer
720 *default, {integer}
Sets the width of the tabs in pixels
tabClass
string
"ifxTabNav" *default, {"classname"}
Assigns a class style to the Tab system. You may write and add your own to the ifxTab.css or use ifxTabNav-1 or ifxTabNav-2
tabShadow
boolean
false *default
Assigns a shadow to the Tab System
ifxDeepLink
boolean
true *default, false
Turns on and off deep link ability. *See ifxDeepLink