s.t.a.s
6 Apr 2012, 5:39 AM
How to make list items to be draggable? I want to let user drag each list item horisontally (and under item then I'll place options icons like in Twitter). Now I try to do that so:
onItemTouchStart: function (component, index, target, record, eventObject, options) {
//target.setDraggable({direction: 'horizontal'});
var activeEl = Ext.get(target);
Ext.util.Draggable(activeEl, {});
}
On target.setDraggable({direction: 'horizontal'}) I get error message "Object [object Object] has no method 'setDraggable'".
But on Ext.util.Draggable(activeEl, {}); I get nothing. I mean behavior absolutely the same as before and I can't drag item.
Is it possible to do that?
onItemTouchStart: function (component, index, target, record, eventObject, options) {
//target.setDraggable({direction: 'horizontal'});
var activeEl = Ext.get(target);
Ext.util.Draggable(activeEl, {});
}
On target.setDraggable({direction: 'horizontal'}) I get error message "Object [object Object] has no method 'setDraggable'".
But on Ext.util.Draggable(activeEl, {}); I get nothing. I mean behavior absolutely the same as before and I can't drag item.
Is it possible to do that?