3

I am using BootstrapDialog to show a warning, Where i am not able to show warning icon in the same.

Is there any way/method/key to set icon in BootstrapDailog code.

new BootstrapDialog()
     .setTitle('Warning')
     .setMessage('Warning on your action.')
     .setType(BootstrapDialog.TYPE_WARNING)
     .open();

In my case this dialog is common to all the pages. so, preferred to achieve this using script instead of HTML modal.

using: bootstrap.min.css, jquery.min.js, bootstrap.min.js, bootstrap-dialog.min.css and bootstrap-dialog.min.js.

Yaseen Ahmad
  • 1,807
  • 5
  • 25
  • 43
  • http://www.jqueryscript.net/demo/Responsive-jQuery-Message-Box-Notification-Plugin-lobibox/ – Ranjan Aug 24 '16 at 06:20

1 Answers1

1

Title could be

String or Object(html)

You can try to set title as "ICON + title text"

.setTitle($('<span class="glyphicon glyphicon-alert">').append('Warning'))
barha
  • 709
  • 1
  • 7
  • 22