Ext.TabPanel 项目处理程序
单击选项卡时是否有可能获得事件?
var buttons = [
{
title: 'Home',
iconCls: 'home'
}, {
title: 'Search',
iconCls: 'search'
}
];
var panel = new Ext.TabPanel({
fullscreen: true,
cls: 'panel',
ui: 'dark',
tabBar: {
dock: 'bottom',
layout: {
pack: 'center'
},
},
items:buttons
});
PS 谷歌翻译,抱歉。
Is there any possibility to get an event when you click on the tab?
var buttons = [
{
title: 'Home',
iconCls: 'home'
}, {
title: 'Search',
iconCls: 'search'
}
];
var panel = new Ext.TabPanel({
fullscreen: true,
cls: 'panel',
ui: 'dark',
tabBar: {
dock: 'bottom',
layout: {
pack: 'center'
},
},
items:buttons
});
PS Google Translte, sorry.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
按钮数组中的每个项目都是选项卡,它是按钮的后继者,因此具有“handler”属性:
Each items in buttons array are Tabs which is a Button successor so has "handler" property: