Javascript - ExtJs - TabPanel組件
阿新 • • 發佈:2017-09-02
reat 指定 disable 配置 禁用 log span gif disabled
width: "100%",
renderTo: "tabBox",
items: [
{
title: "權限查詢",
items: [
Ext.getCmp("TbRightPanel") //將組件放進tab
]
},
{
title: "配置員工權限",
items: [
]
}
]
});
//內邊距
disabled:bool
//禁用
activeTab:index | Ext.Component
//默認激活哪一個選項卡 View Code
//id
bodyPadding:number
//內邊距
hidden:bool
//被隱藏
html:string
//內容
closable: bool
//可關閉
tabIndex:number
//自定索引 View Code tabId | tabIndex | Ext.Component)
//設置默認激活參數指定的選項卡組件,返回這個選項卡組件
getActiveTab()
//獲取被激活的選項卡組件
remove(tabId | tabIndex | Ext.Component)
//移除參數指定的選項卡組件 View Code
示例
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(//設置默認激活參數指定的選項卡組件,返回這個選項卡組件
getActiveTab()
//獲取被激活的選項卡組件
remove(tabId | tabIndex | Ext.Component)
//移除參數指定的選項卡組件 View Code
Javascript - ExtJs - TabPanel組件