Skip to content

Instantly share code, notes, and snippets.

@ericf
Created December 15, 2010 23:05
Show Gist options
  • Select an option

  • Save ericf/742747 to your computer and use it in GitHub Desktop.

Select an option

Save ericf/742747 to your computer and use it in GitHub Desktop.
_initWelcomeGuide : function () {
var guide;
guide = new Y.TTW.Guide({
srcNode : '#welcome-guide',
render : true,
visible : true,
centered : true,
zIndex : 250,
preventOverlap : true,
navigation : true,
children : [
{
boundingBox : '#welcome-guide-1',
srcNode : '#welcome-guide-1'
},
{
boundingBox : '#welcome-guide-2',
srcNode : '#welcome-guide-2',
align : {
node : '#create-tip',
points : [Y.WidgetPositionAlign.TC, Y.WidgetPositionAlign.BC]
}
}
],
plugins : [
// { fn: Y.Plugin.OverlayKeepaligned },
{ fn: Y.Plugin.OverlayAutohide, cfg: {
clickedOutside : false,
focusedOutside : false
}}
]
});
return guide;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment