Ian Vink
Ian Vink

Reputation: 68780

Bootbox JS - Alert to use "Close"

We use the Bootboxjs.com project for bootstrap.

We need to change the text of the bootbox.Alert('DDDD") box that appears. The documentation didn't show how to.

Anyone know how to change the text of the Alert button?

Upvotes: 0

Views: 365

Answers (1)

Ian Vink
Ian Vink

Reputation: 68780

Just use a dialog:

bootbox.dialog({
  message: "I am a custom dialog",
  buttons: {
     success: {
      label: "Close",
     }
  }
})

Upvotes: 2

Related Questions