Number Active tab index. Base on 0.
Boolean Whether panel resizes itself according to content.
Boolean To show border or not.
String Initialization height.
- //heigh config
- height : '200px'// or '100%'.
Booean Whether end user can change panel height by mouse dragging.
Array Tab items array.
String or JQuery object To specify where tab panel will be placed. It could be a DOM id or jquery object.
String Initialization width.
- // width config, in px or percentage.
- width : '200px'// or '100%'.
Boolean Whether end user can change panel width by mouse dragging.
To add a new tab.
Object | item | Object for item profile. |
- //to add a new tab
- addTab({id:"newtabid",
- title:"I am new" ,
- html:"some new message goes here",
- closable: true,
- disabled:false,
- icon:"image/new.gif"
- });
To get index of active tab.
Return Number - index of active tab.
To get active tab.
Return Object - Profile of active tab.
To determine whether tab is closable or not.
String | id | item id. |
To get tab inner html.
String | id | item id. |
To determine whether tab is disabled or not.
String | id | item id. |
To get tab index.
Return Number - index of tab.
String | id | item id. |
To get how many tabs are in the panel.
Return Number - Number of tabs .
To get tab title.
String | id | item id. |
To close tab.
String | id | item id. |
To refresh tab content.
String | id | item id. |
To enable or disable end user to close tab.
String | id | Item id. |
Booleaan | True | for closable, false for not. |
To set tab title.
String | id | Item id. |
String | title | Tab inner html. |
To enable or disable tab.
String | id | Item id. |
Booleaan | True | for disabled, false for enabled. |
To set width and height of the panel.
Object | wh | width and height. |
- //To set tab height and width
- setRenderWH({width:'200px', height:'400px'});
To set tab title.
String | id | Item id. |
String | title | Tab title. |