Browse Source

add using FA icon example

Dante 10 years ago
parent
commit
d38c85fb62
1 changed files with 31 additions and 0 deletions
  1. 31 0
      examples/play/spinning-icon.html

+ 31 - 0
examples/play/spinning-icon.html

@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <script src="../assets/jquery/jquery-1.10.2.min.js"></script>
+        <link href="../assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
+        <script src="../assets/bootstrap/js/bootstrap.min.js"></script>
+        <link href="../assets/bootstrap-dialog/css/bootstrap-dialog.min.css" rel="stylesheet" type="text/css" />
+        <script src="../assets/bootstrap-dialog/js/bootstrap-dialog.min.js"></script>
+        <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
+        <title>Spinning Icon</title>
+        <meta charset="utf-8" />
+    </head>
+    <body>
+        <script type="text/javascript">
+            /**
+             * This example demonstrates how to custom the spinning icon.
+             */
+            $(function() {
+                var dialog = new BootstrapDialog({
+                    message: 'Custom spinning icon.',
+                    spinicon: 'fa fa-spinner fa-fw',
+                    buttons: [{
+                            label: 'Spin',
+                            autospin: true
+                        }]
+                });
+                dialog.open();
+            });
+        </script>
+    </body>
+</html>