Skip to content

Instantly share code, notes, and snippets.

@rainhead
Created September 8, 2010 19:01
Show Gist options
  • Save rainhead/570631 to your computer and use it in GitHub Desktop.
Save rainhead/570631 to your computer and use it in GitHub Desktop.
YUI.add('myoverlay', function(Y) {
Y.MyOverlay = Y.Base.create('myOverlay', Y.Overlay, [], {}, {});
}, '1', {requires: ['overlay']});
Y.use('myoverlay', function() {
var dialog1 = new Y.MyOverlay({contentBox:'#widget1',width:'12em',height:'12em', centered:true, zIndex:10}).render();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment