Skip to content

Instantly share code, notes, and snippets.

View DavidePastore's full-sized avatar

Davide Pastore DavidePastore

View GitHub Profile
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");
@DavidePastore
DavidePastore / bb-html-form.js
Last active August 21, 2016 11:20 — forked from nahakiole/bb-html-form.js
Use buttons and improve the format
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> ' +
@DavidePastore
DavidePastore / bootbox-dialog-v4-all.js
Last active August 21, 2016 12:00 — forked from makeusabrew/bootbox-dialog-v4-all.js
An attempt to demonstrate as many bootbox.dialog options as sanely possible in a single-file gist.
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
*/