ux tabs

Description

Add functionality to ui.tabs

Parameters

string

The control's ID or name

string

The command: init|active

object

The params depend of the command:

action=init

set params to null to init all tabs or set an id to init only the specified one

action=active

set the name of the tab to activate

action=enable


action=disable


Return

void


Example


document.getElementById("your-container").innerHTML = ui.tabs( "tabExample01ux", 

[ {title:"Tab1", icon:ui.fa("fire"), content:"Content for tab 1"}, 

{title:"Tab2", icon:ui.fa("water")}, {title:"Tab3", icon:ui.fa("wind")}] );    

 ux.tabs("tabExample01ux","init");

     

Preview:

In the preview of the example you can see the result of the string:

UX_tabs