Skip to content

Creates a bootstrap modal wrapped in a backbone view

Notifications You must be signed in to change notification settings

senorcris/BootPrompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

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; }
}

About

Creates a bootstrap modal wrapped in a backbone view

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published