Questions tagged [bootbox]

Bootbox.js is a small JavaScript library which allows you to create programmatic dialog boxes using Bootstrap modals.

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.


Useful resources :

459 questions
2
votes
1 answer

How to add custom angular 4 components in a bootbox dialog?

I am trying to display some user information in a bootbox dialog. There is a custom component that I need to display within the dialog. var dialog = bootbox.dialog({ title: 'User Information Table', message: `
stackMan10
  • 732
  • 6
  • 25
2
votes
3 answers

Return result in place of false in javascript function

I want to return the result in place of false.Please help me out, already tried using window object and putting it in a variable then accessing. $(document).ready(function() { $('#confirm').on('click', function() { bootbox.confirm("Are You…
2
votes
1 answer

Wait for Bootbox Confirm to Run Ajax

I need to run an ajax function after confirm is pressed on a bootbox confirm modal. The modal flashes briefly, then the php code is run without waiting. How do I make it wait. My Javascript runs when I remove the bootbox but I want to confirm before…
Drewy
  • 61
  • 2
  • 9
2
votes
0 answers

Move bootbox modal across page while dragging

I am building an electron app in which I show a bootbox alert with a className of settingsModal.Now I was wondering.Is there any way to move this alert across the page by using native drag and drop api?(Don't want to use jQuery UI). Here is the code…
2
votes
2 answers

How to populate a modal box SELECT form control before it is shown using the shown.sb.modal event

I have a simple modal popup that edits an item retrieved from the back end. The for has several input and select controls. The input form controls work properly but the select controls are not pre-populated as intended. The basic architecture of my…
Lukuluba
  • 381
  • 1
  • 5
  • 18
2
votes
1 answer

Modal it is open multiple times

I'm using bootbox library. I have one button called Delete. $('body').on("click", ".deleteDiagnostic", function () { var id = $(this).attr("data-diagnosticID"); var currentRow = $(this).closest('tr'); bootbox.confirm("Are you…
Mihai Alexandru-Ionut
  • 47,092
  • 13
  • 101
  • 128
2
votes
3 answers

bootbox type checkbox: just one option selected validation

I would like to validate in my bootbox that just one option has selected, like radioButtons, do you have any idea? This is the code bootbox.prompt({ title: "Seleccione el autorizado", inputType: 'checkbox', inputOptions: jsonArray, …
Ale Levy
  • 21
  • 1
  • 2
2
votes
1 answer

ng-repeat only updating after clicking another tab or typing in a textbox

I'm pretty new to angular and have been having a bit of a problem in trying to create a basic "to-do" list sort of app. There are various categories in the sidebar, and the user can click a button that brings up a modal prompting the user for the…
Shallac
  • 23
  • 2
2
votes
1 answer

botboox confirm dialog dont wait

I'm using bootbox to confirm a user action. I have a button that submits a form, and when that button is clicked I need the user's confirmation to submit or cancel: $(document).ready(function() { $(btn_continue).click(function(){ …
MeBex
  • 488
  • 1
  • 5
  • 20
2
votes
2 answers

bootbox 4.4 how to alert with different button label

i see in bootbox v3 documentation you can change the label by using below method bootbox.alert(str message, str label, fn callback) Custom button text, callback invoked on dismissal, However on version 4.4 this method does not seem to work, how can…
josh_boaz
  • 1,963
  • 7
  • 32
  • 69
2
votes
1 answer

how to show the successful message in bootstrap successful alert after inserting the data successfully

How to show alert messages in green for some moment or have a close button at right side after inserting into database. …
sabin maharjan
  • 107
  • 1
  • 11
2
votes
1 answer

Init function for bootbox to use some code after showing dialog

I want to display a textarea-element with bootbox. This textarea should be used with a WYSIWYG-editor, which will be initialized by $('#editor').redactor(); So I want to add this in the moment the textarea is displayed. I tried…
user3142695
  • 15,844
  • 47
  • 176
  • 332
2
votes
0 answers

"before unload" displays unwanted dialog?

I have a beforeunload` handler on my page to catch situations where the user hasn't saved before, for instance, closing the tab. The code looks like this : $(window).bind("beforeunload", function(evt) { if (TCG.QUE.changeCount > 0){ …
glaucon
  • 8,112
  • 9
  • 41
  • 63
2
votes
2 answers

Callback on close dialog or dismiss

Is there an option with bootbox that calls a function when the user closes the dialog via the 'x' button? I did not find a documentation about this when using bootbox.dialog(). Are there something like this: bootbox.dialog({ message : 'My…
Emad Omar
  • 729
  • 9
  • 23
2
votes
0 answers

BootBox javascript Confirm delete

I am using asp.net MVC 5. In Bootbox js $(document).on("click", ".MyLink", function (e) { bootbox.confirm("Are you sure?", function(result) { Example.show("Confirm result: "+result); }); }); @Html.ActionLink("Delete", "Delete",…
user3755380