Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 572 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 572 Bytes

BootPrompt

Creates a bootstrap modal wrapped in a backbone view.

##Options #####width Set the width of the modal. ####title Set the title of the modal. ####content Text/html for the body of the modal. ####ok/cancel Called when the user presses the ok/cancel button:

  • Return true to close the modal.
  • Return false to keep the modal open. (Useful for validation)

##Options Example

{
width: 500,
title: "Text",
content: 'body text or dom element for body',
ok: function($el, e) { return true; },
cancel: function($el, e) { return true; }
}