I would like to put an action on widget window drag and drop. Is it possible? Does moving a widget panel by a user emit some kind of event, which I would be then able to use somehow like this: on(this.something, 'move', Dosomething) ???
Thanks
Lubomír
Solved! Go to Solution.
Lubomír,
Sure. If you add the require for dojo/topic and these lines to the Widget.js then you can get the info on when the widgets is done moving:
topic.subscribe('/dnd/move/stop', lang.hitch(this, function(mover){ console.info(mover.node); }));
Lubomír,
Sure. If you add the require for dojo/topic and these lines to the Widget.js then you can get the info on when the widgets is done moving:
topic.subscribe('/dnd/move/stop', lang.hitch(this, function(mover){ console.info(mover.node); }));
Thank you very much, this is exactly what I needed + I have never heard of dojo/topic.
Solved.