ExtJS4中的工具栏
我是Ext Js的新手。我试图在工具栏中创建菜单按钮和拆分按钮。这是我的密码ExtJS4中的工具栏,extjs,toolbar,Extjs,Toolbar,我是Ext Js的新手。我试图在工具栏中创建菜单按钮和拆分按钮。这是我的密码 Ext.onReady(function(){ new Ext.Toolbar({ renderTo: document.body, items: [{ xtype: 'tbbutton', text: 'Button' },{ xtype: 'tbbutton', t
Ext.onReady(function(){
new Ext.Toolbar({
renderTo: document.body,
items: [{
xtype: 'tbbutton',
text: 'Button'
},{
xtype: 'tbbutton',
text: 'Menu Button',
menu: [{
text: 'Better'
},{
text: 'Good'
},{
text: 'Best'
}]
},{
xtype: 'tbsplit',
text: 'Split Button',
menu: [{
text: 'Item One'
},{
text: 'Item Two'
},{
text: 'Item Three'
}]
}]
});
});
当我在
ext-4.2.1.883
软件包中运行上述代码时,它没有显示所需的工具栏。请帮助如果您使用了错误的X类型,请使用:
- 而不是“tbbutton”
- 而不是“tbsplit”