Skip to content

Instantly share code, notes, and snippets.

@eduardolundgren
Created August 26, 2013 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eduardolundgren/6346138 to your computer and use it in GitHub Desktop.
Save eduardolundgren/6346138 to your computer and use it in GitHub Desktop.
YUI().use(
'aui-modal',
function(Y) {
var modal1 = new Y.Modal(
{
bodyContent: '<button id="inModalButton">foo</button>',
headerContent: 'Modal header',
render: '#modal',
}
).render();
var modal2 = new Y.Modal(
{
headerContent: 'Modal header',
toolbars: {
body: [
{ label: 'Body' }
],
footer: [
{ icon: 'Footer' }
]
},
render: '#modal',
}
).render();
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment