87,904
社区成员
发帖
与我相关
我的任务
分享
Ext.onReady(function() {
MyButtonUi = Ext.extend(Ext.Button, {
text: 'MyButton',
initComponent: function() {
MyButtonUi.superclass.initComponent.call(this);
}
});
});
Ext.onReady(function(){
var p = new Ext.Panel({
title: 'My Panel',
collapsible:true,
renderTo: 'container',
width:400,
html: '<div>123<div>'
});
});
MyButtonUi = Ext.extend(Ext.Button, {
text: 'MyButton',
initComponent: function() {
MyButtonUi.superclass.initComponent.call(this);
}
});
Ext.onReady(function() {
var a = new MyButtonUi();
var viewport = new Ext.Panel({
height: 308,
width: 619,
title: 'My Panel',
renderTo: 'container',
items:[a]
});
});
</script>