ソースを参照

updating play cases

Dante 10 年 前
コミット
e35a1c9faf
2 ファイル変更35 行追加2 行削除
  1. 1 2
      .gitignore
  2. 34 0
      play/play.html

+ 1 - 2
.gitignore

@@ -1,3 +1,2 @@
 nbproject
-node_modules
-play.html
+node_modules

+ 34 - 0
play/play.html

@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <script src="examples/assets/jquery/jquery-1.10.2.min.js"></script>
+        <link href="examples/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
+        <script src="examples/assets/bootstrap/js/bootstrap.min.js"></script>
+        <link href="src/css/bootstrap-dialog.css" rel="stylesheet" type="text/css" />
+        <script src="src/js/bootstrap-dialog.js"></script>
+        <title>Playing BootstrapDialog</title>
+        <meta charset="utf-8" />
+    </head>
+    <body>
+        <script type="text/javascript">
+            $(function() {
+                var dialog = new BootstrapDialog({
+                    closable: false,
+                    buttons: [{
+                            label: 'Button 1',
+                            action: function(dialog) {
+                                this.data('event').stopPropagation();
+                            }
+                        }],
+                    onshown: function(dialog) {
+                        var $footer = dialog.getModalFooter();
+                        $footer.on('click', function(event) {
+                            alert('Footer was hit.');
+                        });
+                    }
+                });
+                dialog.open();
+            });
+        </script>
+    </body>
+</html>