[Kimchi-devel] [PATCH 2/2] UI: Sample of dialog widget
Wen Wang
wenwang at linux.vnet.ibm.com
Wed Feb 4 02:35:14 UTC 2015
V1 -> V2:
Change the file name from "dialog-sample.html" to "dialog.html" and add
the license header to the sample file.
Signed-off-by: Wen Wang <wenwang at linux.vnet.ibm.com>
---
ui/js/widgets/samples/dialog.html | 51 +++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
create mode 100644 ui/js/widgets/samples/dialog.html
diff --git a/ui/js/widgets/samples/dialog.html b/ui/js/widgets/samples/dialog.html
new file mode 100644
index 0000000..af439d4
--- /dev/null
+++ b/ui/js/widgets/samples/dialog.html
@@ -0,0 +1,51 @@
+<!--
+/*
+ * Project Kimchi
+ *
+ * Copyright IBM, Corp. 2015
+ *
+ * Licensed under the Apache License, Version 2.0 (the 'License');
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="UTF-8">
+ <title>Dialog Demo</title>
+ <script src="../../../libs/jquery-1.10.0.min.js"></script>
+ <script src="../../../libs/jquery-ui.min.js"></script>
+ <script src="../dialog-flat.js"></script>
+ <link rel="stylesheet" href="../../../libs/themes/base/jquery-ui.min.css">
+ <link rel="stylesheet" href="../../../css/theme-default/dialog-flat.css">
+ <link rel="stylesheet" href="../../../css/fontello/css/animation.css">
+ <link rel="stylesheet" href="../../../css/fontello/css/fontello.css">
+ </head>
+ <body>
+ <div class="dialog-demo"></div>
+ <script>
+ $(document).ready(function() {
+ $(".dialog-demo").dialogFlat({
+ title: "Demo", //Title of the dialog.
+ confirmText: "Ok", //Text of the confirm button, "Ok" is the default value.
+ cancelText: "Cancel", //Text of the cancel button.
+ width: "600", //Width of the dialog, "px" is the default unit.
+ height: "500", //Height of the dialog, "px" is the default unit.
+ confirmFunc: function() {
+ alert("success");//Function after confirm
+ }
+ });
+ });
+ </script>
+ </body>
+</html>
\ No newline at end of file
--
2.1.0
More information about the Kimchi-devel
mailing list