日期:2014-05-16 浏览次数:20528 次
{
title: 'Framed panel: Width 280/Height 180',
html: html,
collapsible: true,
frame: true,
autoScroll: true,
width: 280,
height: 180,
listeners: {
render: function(p){
p.body.on('scroll', function(){
// do stuff
alert(1)
}, p);
}
}
}
Ext.define('mvcDemo.view.makerChecker.userDetailPanel',{
extend:'EpssCommonPanel'
,alias:"widget.mckuserdetailpanel"
,region:'center'
,layout:{type:'vbox',align:'stretch'}
,overflowY:'auto'
,bodyStyle :{backgroundColor:'#FFFFFF'}
,defaults:{anchor:'-16'}
,margin:0
,height:500
,bodyPadding:5
,dockedItems: [{xtype:'mcktoolbar',titleText:"Demo > makerCheckerMaintenance"}]
,items:[
{xtype: 'mckuserdetail'},
{xtype: 'mckproductgrid'},
{xtype: 'mckbuttonbar'}
]
,listeners: {
render: function(component){
component.body.on('scroll', function(e){
console.log("scroll");
//component.add({xtype: 'mckbuttonbar'});
var d=component.body.dom;
if(d.scrollTop === d.scrollTopMax){
alert("scroll to end")
}
},this,{buffer :100});
}
}
});