在 Ext js 4.0 中调整网格大小时如何调用函数?
How to call a function on when a grid is resized in Ext js 4.0?
如何在 Ext js 4.0 中调整网格大小时调用函数?
我正在尝试类似的方法,但它不起作用。
Ext.define('App.view.EDM.DataModelling.Entity.entitySymbol' ,{
extend: 'Ext.grid.Panel',
alias : 'widget.entitySymbol',
title:'Entity',
ddGroup : 'GridDDGroup',
hideHeaders : true,
stripeRows : false,
resizable : {
resize : function(e ) {
alert("hi1");
},
resizedrag : function(e ) {
alert("hi2");
},
beforeresize : function(e ) {
alert("hi3");
}
},
floating:true,
draggable : true,
loadMask : true,
height: 180,
width: 160
});
None 有效。
您应该为 resize event
添加一个侦听器
...
stripeRows : false,
listeners:{
resize: function(this, width, height, oldWidth, oldHeight, eOpts){
alert("hi4");
}
},
...
如何在 Ext js 4.0 中调整网格大小时调用函数?
我正在尝试类似的方法,但它不起作用。
Ext.define('App.view.EDM.DataModelling.Entity.entitySymbol' ,{
extend: 'Ext.grid.Panel',
alias : 'widget.entitySymbol',
title:'Entity',
ddGroup : 'GridDDGroup',
hideHeaders : true,
stripeRows : false,
resizable : {
resize : function(e ) {
alert("hi1");
},
resizedrag : function(e ) {
alert("hi2");
},
beforeresize : function(e ) {
alert("hi3");
}
},
floating:true,
draggable : true,
loadMask : true,
height: 180,
width: 160
});
None 有效。
您应该为 resize event
添加一个侦听器...
stripeRows : false,
listeners:{
resize: function(this, width, height, oldWidth, oldHeight, eOpts){
alert("hi4");
}
},
...