EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Opan Mustopah on November 04, 2014, 08:16:02 PM



Title: create dynamically menu button on easyui
Post by: Opan Mustopah on November 04, 2014, 08:16:02 PM
hello again,

in to the point, it is possible to make menu button display dynamically?

for example i have one menubutton below:

Code:
<a class="easyui-menubutton" href="javascript:void(0)" id="test" menu="#0001" plain="true"> Test </a>


and i have a div to provide the sub menu

Code:
<div id='0001'> 
<div> 1 </div>
<div> 2</div>
</div>

so when i hover the menubutton, it will show the sub menu right?, and what i want is when i hover again to submenu with textmenu = 2, it will append new submenu in it self.

so the code it look like this (ex):
Code:
<div id='0001'> 
<div> 1 </div>
<div>
2
<div> 2.1</div>
<div> 2.2</div>
</div>
</div>

again, it is possible to do this in easyui plugin?
thanks for every answer


Title: Re: create dynamically menu button on easyui
Post by: Opan Mustopah on November 05, 2014, 04:53:29 AM
problem solved :D thank for looking my post.


Title: Re: create dynamically menu button on easyui
Post by: koysweb on June 12, 2015, 05:18:26 AM
I need to do this too, how do i do it?  :-\