ilovesenchaverymuch
12 Aug 2011, 1:44 AM
Dear Every ExtJS LOVERS,
I am one of lovers of sencha... and trying to use extjs....
I am new to extjs4 now, and facing a misterious issue about DragSource's proxy.
I 'm going to change proxy of DragSource, but it failed... Please help me...:)
The failed code followed.
Ext.onReady(function() {
Ext.create('Ext.container.Viewport', {
layout: 'vbox',
items: [{
xtype: 'panel',
id: 'panel1',
title: 'Drag This Panel',
bodyCls: 'green-body',
draggable: true,
width: 300,
height: 100
}]
});
var e_proxy = Ext.create('Ext.window.Window', {id:'ee_proxy', layout:'fit',
width: 200, height: 50, floating: true, title: 'this', html: 'extjs'
});
Ext.getCmp('panel1').dd.proxy = e_proxy;
});
:)
I am one of lovers of sencha... and trying to use extjs....
I am new to extjs4 now, and facing a misterious issue about DragSource's proxy.
I 'm going to change proxy of DragSource, but it failed... Please help me...:)
The failed code followed.
Ext.onReady(function() {
Ext.create('Ext.container.Viewport', {
layout: 'vbox',
items: [{
xtype: 'panel',
id: 'panel1',
title: 'Drag This Panel',
bodyCls: 'green-body',
draggable: true,
width: 300,
height: 100
}]
});
var e_proxy = Ext.create('Ext.window.Window', {id:'ee_proxy', layout:'fit',
width: 200, height: 50, floating: true, title: 'this', html: 'extjs'
});
Ext.getCmp('panel1').dd.proxy = e_proxy;
});
:)