我要到正规煎茶按钮,在煎茶触摸2添加按钮的TabPanel
煎茶小提琴添加到的TabPanel http://www.senchafiddle.com/#tRd76
代码:
//define the application
Ext.application({
launch: function() {
addTabPanel();
}
});
function addTabPanel(){
Ext.Viewport.add({
xtype: 'tabpanel',
tabBarPosition: 'bottom',
fullscreen: true,
tabBar:{
dockedItems:[{
xtype: 'button',
ui: 'round',
text: 'Button1',
dock: 'left',
handler: function(){
alert('Botton1 Working Now');
}
}]
},
items:[
{
title: 'All Market',
iconCls: 'home',
html: 'Home',
},
{
title: 'Favorite',
iconCls: 'favorites',
html:'Favorite',
itemTpl: '{mwRow}',
}
]
});
}
当添加Button1以的TabPanel按钮不会显示。 为什么Button1不显示?
请帮忙?
我想在TabBar的左边添加Button而不添加新标签 – 2012-07-11 14:29:40
在这里,我更新了我的答案 – 2012-07-11 20:26:30
这不是本地方法来添加此按钮,但它的工作很好,我非常感谢你。 – 2012-07-14 09:03:22