jquery - Adding Warning icon to Bootstrap Dialog -


i using bootstrapdialog show warning, not able show warning icon in same.

is there way/method/key set icon in bootstrapdailog code.

new bootstrapdialog()      .settitle('warning')      .setmessage('warning on action.')      .settype(bootstrapdialog.type_warning)      .open(); 

in case dialog common pages. so, preferred achieve using script instead of html modal.

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

title

string or object(html) 

you can try set title "icon + title text"

.settitle($('<span class="glyphicon glyphicon-alert">').append('warning')) 

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -