var panelDeploy=Ext.create('Ext.panel.Panel',{
title:'面板'+count,
id:'aaaa'+count,
//layout:'fit',
width:400,
height:300,
frame:true,
draggable:true,
resizable:true,
bodyPadding: 10,
items:[{
xtype:'button',
text:'配置',
id:'set'+count,
handler:function(){addChart(count);},
height:30,
}]
}) ; var addChart=function(s){
var ss='aaaa'+s;
}
addChart为自定义函数,为所传的参数
本文介绍了一个使用ExtJS框架创建可调整大小及拖动位置的面板示例,并在面板中添加了一个按钮,点击该按钮将调用自定义函数addChart。此示例展示了如何设置面板的基本属性,如标题、ID、尺寸等。
2527

被折叠的 条评论
为什么被折叠?



