浏览代码

Updated example

Dante 9 年之前
父节点
当前提交
f3bd8ca1c7
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      index.html

+ 4 - 1
index.html

@@ -145,9 +145,11 @@
         BootstrapDialog.show({
             message: 'Hi Apple!',
             buttons: [{
-                label: 'Button 1'
+                label: 'Button 1',
+                title: 'Mouse over Button 1'
             }, {
                 label: 'Button 2',
+                // no title as it is optional
                 cssClass: 'btn-primary',
                 action: function(){
                     alert('Hi Orange!');
@@ -155,6 +157,7 @@
             }, {
                 icon: 'glyphicon glyphicon-ban-circle',
                 label: 'Button 3',
+                title: 'Mouse over Button 3',
                 cssClass: 'btn-warning'
             }, {
                 label: 'Close',