MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap
Revision 3 as of 2015-03-12 21:26:26
  • Javascript
  • bootbox

bootbox

Bootbox.js is a small Javascript library which allows you to create programmatic dialog boxes using Bootstrap modals, without having to worry about creating, managing or removing any of the required DOM elements or JS event handlers.

http://bootboxjs.com/

bootbox.dialog("<h1>I am a custom dialog</h1>", [{
"label" : "Success!",
"class" : "btn-success",
"callback": function() {
}
}, {
"label" : "Danger!",
"class" : "btn-danger",
"callback": function() {
}
}, {
"label" : "Click ME!",
"class" : "btn-primary",
"callback": function() {
}
}, {
"label" : "Just a button..."
}]);
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01