soleaf / jUI_menu

Dropdown Menu UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

screenshot

##HOW TO USE

  1. 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 values
  • data-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>
  1. Make menu content list
  • data-id : id
  • data-role : type of menu
    • root : root menu
    • sub: submenu
  • data-root : data-id of root menu
  • data-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>
  1. 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,

About

Dropdown Menu UI


Languages

Language:JavaScript 80.2%Language:CSS 19.8%