jUI_menu
Dropdown Menu UI
##SUMMARY jUI_menu is a easy beautiful Javascript tool for combobox and menu have input value. Therefore You can use this component to form on your site. Or Use navigating with submenu!
- Beautiful and customable combobox or menu
- Submenu
- Generate INPUT tag for form.
##HOW TO USE
- Write this menu code. This appear menu/combobox button. And modify values
data-id
: id for root menu.data-selectedValue
: selected value(default value) on items valuesdata-width
: force width. (Optional)
<a href="#" class="jUI_menu" data-id="one" data-selectedValue="11" data-width="170">
<span class="label"></span>
<span class="arrow"></span>
</a>
- Make menu content list
data-id
: iddata-role
: type of menuroot
: root menusub
: submenu
data-root
: data-id of root menudata-value
: value for input(form)
<ul class="jUI_memu_layer" data-role="root" data-id="one" data-root="one">
<li data-value="">ALL</li>
<li data-value="11">1</li>
<li data-value="S100" data-sub="sub1">11</li>
<li data-value="S200" data-sub="sub2">222</li>
</ul>
<ul class="jUI_memu_layer" data-role="sub" data-id="sub1" data-root="one">
<li data-value="3">A123LL</li>
<li data-value="31">1</li>
</ul>
<ul class="jUI_memu_layer" data-role="sub" data-id="sub2" data-root="one">
<li data-value="3">A123LL</li>
<li data-value="31">1</li>
</ul>
<ul class="jUI_memu_layer" data-role="root" data-id="two" data-root="two">
<li data-value="">ALL</li>
<li data-value="11">1</li>
<li data-value="S100">11</li>
<li data-value="S200">222</li>
</ul>
- That's all!
USE INPUT FOR FORM
If you use jUI_menu, You cant see autugenerated input tag
in menu through web browser source viewer(rendered)
This is rendered code. See input. you can use it for form and post/get action and other.
This value is changed by selecting menu.
Just do Nothing :) It's Automating!
- name is matched by
data-id
<input type="text" name="one" value="11" style="display:none" data-role="jUI_menu">
CAHNGE STYLE
Modify css file. all style is in this file. :)
CONTACT
If you have any question,
- soleaf(il ho Ahn)
- milk@mintcode.org
- www.mintcode.org