Skip to content

Instantly share code, notes, and snippets.

@davglass
Created February 18, 2009 22:30
Show Gist options
  • Save davglass/66590 to your computer and use it in GitHub Desktop.
Save davglass/66590 to your computer and use it in GitHub Desktop.
//DragDrop
var dd = new YAHOO.util.DD('dd');
dd.on('dragEvent', function() { });
//Panel
var panel = new YAHOO.widget.Panel('panel');
panel.renderEvent.subscribe(function() {});
//Calendar
var cal = new YAHOO.widget.Calendar('cal');
cal.selectEvent.subscribe(function() {});
//Editor
var editor = new YAHOO.widget.Editor('editor', {});
editor.on('afterRender', function() {});
@seanbischoff
Copy link

[yui 2.9] You would think the Panel example would work for Dialog.beforeMoveEvent, It does not. And Dialog does not support on(). Is this just a deceased event? It would be preferable to "move" (I think this is custom, undocumented. there is no 'beforemoveevent' or 'beforemove' unfortunately), which fires after the move is done, and dragEvent which is an assault event, firing repeatedly until drag is complete. Oh and 'move' becomes an assault event when you start resizing the window. So basically there seems to be no option to immediately reacting to the user starting to move a dialog - before the move is done and that does not create a memory performance problem. addListener was also a no go. I can hear the answer now, "upgrade to YUI 3". Not likely I"m afraid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment