1. 程式人生 > >Javascript - ExtJs - TabPanel組件

Javascript - ExtJs - TabPanel組件

reat 指定 disable 配置 禁用 log span gif disabled

示例

Ext.create(‘Ext.tab.Panel‘, {
width: "100%",
renderTo: "tabBox",
items: [
{
title: "權限查詢",
items: [
Ext.getCmp("TbRightPanel") //將組件放進tab
]
},
{
title: "配置員工權限",
items: [

]

}
]
});

配置

技術分享 bodyPadding:number
//內邊距

disabled:bool
//禁用

activeTab:index | Ext.Component
//默認激活哪一個選項卡 View Code

子項配置

技術分享 itemId:string
//id

bodyPadding:number
//內邊距

hidden:bool
//被隱藏

html:string
//內容

closable: bool
//可關閉

tabIndex:number
//自定索引 View Code

方法

技術分享 setActiveTab(
tabId | tabIndex | Ext.Component)

//設置默認激活參數指定的選項卡組件,返回這個選項卡組件

getActiveTab()
//獲取被激活的選項卡組件

remove(tabId | tabIndex | Ext.Component)
//移除參數指定的選項卡組件 View Code

Javascript - ExtJs - TabPanel組件