Extjs Panel中的buttons如何显示在panel的里面 如题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 var panel = new Ext.Panel({ title: '标题', width: 400, height: 400, renderTo: Ext.getBody(), collapsible: true, // 折叠 titleCollapse: true, // 点标题栏可折叠 buttonAlign: 'center', // right/left //html: '<h1>主题内容</h1>', contentEl: 'content', bbar:[ new Ext.Toolbar.Button({ text: '文件', handler: function(){ Ext.Msg.alert('提示', '哈哈'); } }), new Ext.Toolbar.Separator(), new Ext.Toolbar.Spacer(), { text: '文件2', handler: function(){ Ext.Msg.alert('提示', '哈哈'); } }, new Ext.Toolbar.TextItem({ text: '文本信息' }), new Ext.Toolbar.Fill(), new Ext.Toolbar.SplitButton({ text: '编辑', menu: [ { text: '复制' }, { text: '粘贴' } ] }) ], buttons:[ { text: '提交', handler: function(){ } }, { text: '提交2' } ] }); 我理解楼主是想把button放到panel中的items里,楼上的方法button是在最底下的。如果放到items里就行了:button1 = new Ext.Button( { ...... }var panel = new Ext.Panel({......items: [ ...... { button1 }}); 使用javascript中的dom来写代码,会的请进,急 这个路径这样写不行么? 如何实现这个效果啊? javascript中replace用法的问题 求utf8转gb2312方法 BS架构软件怎么样做到少刷新 初学者的问题 问个简单问题,多个按钮提交一个表单~~~~~~~~~~~~~急,马上结分 有个复选框,当用户选中时提示,如果选择是就选中,如果选择否就让复选框不被选中! 怎样禁止鼠标在页面上做任何操作?谢谢 人人网底部工具栏的奥秘在哪? ExtJS editorgrid获取store的问题
title: '标题',
width: 400,
height: 400,
renderTo: Ext.getBody(),
collapsible: true, // 折叠
titleCollapse: true, // 点标题栏可折叠
buttonAlign: 'center', // right/left
//html: '<h1>主题内容</h1>',
contentEl: 'content',
bbar:[
new Ext.Toolbar.Button({
text: '文件',
handler: function(){
Ext.Msg.alert('提示', '哈哈');
}
}),
new Ext.Toolbar.Separator(),
new Ext.Toolbar.Spacer(),
{
text: '文件2',
handler: function(){
Ext.Msg.alert('提示', '哈哈');
}
},
new Ext.Toolbar.TextItem({
text: '文本信息'
}),
new Ext.Toolbar.Fill(),
new Ext.Toolbar.SplitButton({
text: '编辑',
menu: [
{
text: '复制'
},
{
text: '粘贴'
}
]
})
],
buttons:[
{
text: '提交',
handler: function(){
}
},
{
text: '提交2'
}
]
});
button1 = new Ext.Button(
{
......
}var panel = new Ext.Panel({
......
items: [
......
{
button1
}
});