This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bootbox.dialog({ | |
message: "I am a custom dialog", | |
title: "Custom title", | |
buttons: [ | |
{ | |
key: "success", | |
label: "Success!", | |
className: "btn-success", | |
callback: function() { | |
Example.show("great success"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bootbox.dialog({ | |
title: "This is a form in a modal.", | |
message: '<div class="row"> ' + | |
'<div class="col-md-12"> ' + | |
'<form class="form-horizontal"> ' + | |
'<div class="form-group"> ' + | |
'<label class="col-md-4 control-label" for="name">Name</label> ' + | |
'<div class="col-md-4"> ' + | |
'<input id="name" name="name" type="text" placeholder="Your name" class="form-control input-md"> ' + | |
'<span class="help-block">Here goes your name</span> </div> ' + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bootbox.dialog({ | |
/** | |
* @required String|Element | |
*/ | |
message: "I am a custom dialog", | |
/** | |
* @optional String|Element | |
* adds a header to the dialog and places this text in an h4 | |
*/ |