<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thanks for the tips Paulo, I will have the time changed. I am not
sure what's wrong with the the indentation of the comments. I will
resend a version and hopefully it worked well<br>
<br>
<div class="moz-cite-prefix">On 2/4/2015 11:03 PM, Paulo Ricardo Paz
Vital wrote:<br>
</div>
<blockquote
cite="mid:CAFe=of43yr4uXzvy+rL8fujRXb__k-azhoJyTg-F6WMcfauRGQ@mail.gmail.com"
type="cite">Few comments bellow...<br>
<br>
<div class="gmail_quote">On Wed Feb 04 2015 at 3:55:50 PM Wen Wang
<<a moz-do-not-send="true"
href="mailto:wenwang@linux.vnet.ibm.com">wenwang@linux.vnet.ibm.com</a>>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">V1 -> V2:<br>
Add lincense.<br>
<br>
Signed-off-by: Wen Wang <<a moz-do-not-send="true"
href="mailto:wenwang@linux.vnet.ibm.com" target="_blank">wenwang@linux.vnet.ibm.com</a>><br>
---<br>
...u-button-radio-checkbox-text-select-sample.html | 101
+++++++++++++++++++++<br>
1 file changed, 101 insertions(+)<br>
create mode 100644 ui/js/widgets/samples/menu-button-radio-checkbox-text-select-sample.html<br>
<br>
diff --git a/ui/js/widgets/samples/menu-button-radio-checkbox-text-select-sample.html
b/ui/js/widgets/samples/menu-button-radio-checkbox-text-select-sample.html<br>
new file mode 100644<br>
index 0000000..2b97073<br>
--- /dev/null<br>
+++ b/ui/js/widgets/samples/menu-button-radio-checkbox-text-select-sample.html<br>
@@ -0,0 +1,101 @@<br>
+<!--<br>
+/*<br>
+ * Project Kimchi<br>
+ *<br>
+ * Copyright IBM, Corp. 2014<br>
</blockquote>
<div><br>
</div>
<div>s/2014/2015</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
+ *<br>
+ * Licensed under the Apache License, Version 2.0 (the
'License');<br>
+ * you may not use this file except in compliance with the
License.<br>
+ * You may obtain a copy of the License at<br>
+ *<br>
+ * <a moz-do-not-send="true"
href="http://www.apache.org/licenses/LICENSE-2.0"
target="_blank">http://www.apache.org/licenses/LICENSE-2.0</a><br>
+ *<br>
+ * Unless required by applicable law or agreed to in writing,
software<br>
+ * distributed under the License is distributed on an 'AS IS'
BASIS,<br>
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express or implied.<br>
+ * See the License for the specific language governing
permissions and<br>
+ * limitations under the License.<br>
+ */<br>
+--><br>
+<!DOCTYPE html><br>
+<html><br>
+ <head><br>
+ <meta charset="UTF-8"><br>
+ <title>Demo</title><br>
+ <script src="../../../libs/jquery-1.10.0.min.js"></script><br>
+ <script src="../../../libs/jquery-ui.min.js"></script><br>
+ <script src="../menu-flat.js"></script><br>
+ <script src="../button-flat.js"></script><br>
+ <script src="../radio-flat.js"></script><br>
+ <script src="../checkbox-flat.js"></script><br>
+ <script src="../textbox-flat.js"></script><br>
+ <script src="../selectmenu-flat.js"></script><br>
+ <link rel="stylesheet" href="../../../libs/themes/base/jquery-ui.min.css"><br>
+ <link rel="stylesheet" href="../../../css/theme-default/menu-flat.css"><br>
+ <link rel="stylesheet" href="../../../css/theme-default/button-flat.css"><br>
+ <link rel="stylesheet" href="../../../css/theme-default/radio-flat.css"><br>
+ <link rel="stylesheet" href="../../../css/theme-default/checkbox-flat.css"><br>
+ <link rel="stylesheet" href="../../../css/theme-default/textbox-flat.css"><br>
+ <link rel="stylesheet" href="../../../css/theme-default/selectmenu-flat.css"><br>
+ <link rel="stylesheet"
href="../../../css/fontello/css/animation.css"><br>
+ <link rel="stylesheet"
href="../../../css/fontello/css/fontello.css"><br>
+ </head><br>
+ <body><br>
+ <div id="menu"></div><br>
+ <div style="height:50px"><div
id="select"></div></div><br>
+ <div class="radio-demo"></div><br>
+ <div class="checkbox-demo"></div><br>
+ <input class="text-demo"><br>
+ <button class="button-demo">submit</button><br>
+ <script><br>
+ $(document).ready(function() {<br>
+ $("#menu").menuFlat({<br>
+ content: [1,2,3,4,5,6], //Set content of
the menu.<br>
+ icon: "icon-edit-alt", //Set icon of the
menu button.<br>
+ listIconList:
["icon-edit-alt","icon-edit-alt","icon-edit-alt","icon-edit-alt","icon-edit-alt","icon-user"]<br>
+ //Set icons of the
menu list.<br>
+ // name is
optional which set the name of the menu list.<br>
</blockquote>
<div><br>
</div>
<div>Indentation of the comments look like wrong for me.<br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
+ });<br>
+ $("#menu0").on("click", function() {<br>
+ alert("hello");<br>
+ });<br>
+ $("#menu1").on("click", function() {<br>
+ console.log("hello");<br>
+ });<br>
+ $("#select").selectmenuFlat({<br>
+ content: [1,2,3,4,5,6], //Set content of
the select menu<br>
+ selected: 2 // set the selected option,
starts from "1"<br>
+ });<br>
+ $("#select").selectmenuFlat("value", "4");
//Set value.<br>
+ var t = $("#select").selectmenuFlat("value");
//Get value<br>
+ console.log(t);<br>
+ $(".radio-demo").radioFlat({<br>
+ id: "t", //Base id of the radio set.<br>
+ name: "test", //name of the radio.<br>
+ whichChecked: 2, //First selected
position, starts from 1.<br>
+ content: ["apple", "banana", "orange",
"cherry"] //set the content array.<br>
+ });<br>
+ $(".radio-demo").click(function() {<br>
+ console.log($(".radio-demo").radioFlat("value"));
//this is how to get the value of selected radio value<br>
+ });<br>
+ $(".checkbox-demo").checkboxFlat({<br>
+ id: "t", //Checkbox base id.<br>
+ name: "test", //Checkbox name.<br>
+ content: ["apple", "banana", "orange",
"cherry"], //Contents of the checkbox set.<br>
+ checked: [1,3] //Set the checked item,
which starts with number 1.<br>
+ });<br>
+ $(".checkbox-demo").click(function() {<br>
+ console.log($(".selector").checkboxFlat("value"));
//Get value of the checked checkbox.<br>
+ });<br>
+ $(".text-demo").textboxFlat({<br>
+ hint: "hint"<br>
+ });<br>
+ $(".text-demo").css({<br>
+ "height": "30px",<br>
+ "width": "200px"<br>
+ });<br>
+ $(".button-demo").buttonFlat();<br>
+ });<br>
+ </script><br>
+ </body><br>
+</html><br>
\ No newline at end of file<br>
--<br>
2.1.0<br>
<br>
_______________________________________________<br>
Kimchi-devel mailing list<br>
<a moz-do-not-send="true" href="mailto:Kimchi-devel@ovirt.org"
target="_blank">Kimchi-devel@ovirt.org</a><br>
<a moz-do-not-send="true"
href="http://lists.ovirt.org/mailman/listinfo/kimchi-devel"
target="_blank">http://lists.ovirt.org/mailman/listinfo/kimchi-devel</a><br>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>