Few comments bellow...<br><br><div class="gmail_quote">On Wed Feb 04 2015 at 3:55:50 PM Wen Wang <<a 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 href="mailto:wenwang@linux.vnet.ibm.com" target="_blank">wenwang@linux.vnet.ibm.com</a>><br>
---<br>
...u-button-radio-checkbox-<u></u>text-select-sample.html | 101 +++++++++++++++++++++<br>
1 file changed, 101 insertions(+)<br>
create mode 100644 ui/js/widgets/samples/menu-<u></u>button-radio-checkbox-text-<u></u>select-sample.html<br>
<br>
diff --git a/ui/js/widgets/samples/menu-<u></u>button-radio-checkbox-text-<u></u>select-sample.html b/ui/js/widgets/samples/menu-<u></u>button-radio-checkbox-text-<u></u>select-sample.html<br>
new file mode 100644<br>
index 0000000..2b97073<br>
--- /dev/null<br>
+++ b/ui/js/widgets/samples/menu-<u></u>button-radio-checkbox-text-<u></u>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 href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">http://www.apache.org/<u></u>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.<u></u>10.0.min.js"></script><br>
+ <script src="../../../libs/jquery-ui.<u></u>min.js"></script><br>
+ <script src="../menu-flat.js"></<u></u>script><br>
+ <script src="../button-flat.js"></<u></u>script><br>
+ <script src="../radio-flat.js"></<u></u>script><br>
+ <script src="../checkbox-flat.js"></<u></u>script><br>
+ <script src="../textbox-flat.js"></<u></u>script><br>
+ <script src="../selectmenu-flat.js"></<u></u>script><br>
+ <link rel="stylesheet" href="../../../libs/themes/<u></u>base/jquery-ui.min.css"><br>
+ <link rel="stylesheet" href="../../../css/theme-<u></u>default/menu-flat.css"><br>
+ <link rel="stylesheet" href="../../../css/theme-<u></u>default/button-flat.css"><br>
+ <link rel="stylesheet" href="../../../css/theme-<u></u>default/radio-flat.css"><br>
+ <link rel="stylesheet" href="../../../css/theme-<u></u>default/checkbox-flat.css"><br>
+ <link rel="stylesheet" href="../../../css/theme-<u></u>default/textbox-flat.css"><br>
+ <link rel="stylesheet" href="../../../css/theme-<u></u>default/selectmenu-flat.css"><br>
+ <link rel="stylesheet" href="../../../css/fontello/<u></u>css/animation.css"><br>
+ <link rel="stylesheet" href="../../../css/fontello/<u></u>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</<u></u>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-<u></u>alt","icon-edit-alt","icon-<u></u>edit-alt","icon-edit-alt","<u></u>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("<u></u>value", "4"); //Set value.<br>
+ var t = $("#select").selectmenuFlat("<u></u>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(<u></u>function() {<br>
+ console.log($(".radio-demo").<u></u>radioFlat("value")); //this is how to get the value of selected radio value<br>
+ });<br>
+ $(".checkbox-demo").<u></u>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(<u></u>function() {<br>
+ console.log($(".selector").<u></u>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()<u></u>;<br>
+ });<br>
+ </script><br>
+ </body><br>
+</html><br>
\ No newline at end of file<br>
--<br>
2.1.0<br>
<br>
______________________________<u></u>_________________<br>
Kimchi-devel mailing list<br>
<a href="mailto:Kimchi-devel@ovirt.org" target="_blank">Kimchi-devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/kimchi-devel" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/kimchi-devel</a><br>
</blockquote></div>