EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: mzeddd on December 03, 2012, 06:00:39 AM



Title: MenuButton question
Post by: mzeddd on December 03, 2012, 06:00:39 AM
Quote
MenuButton

The menubutton is the part of drop-down menu. It is associated with a linkbutton and menu. The linkbutton is displayed while the menu is hidden. When users click or move the mouse over the linkbutton, the menu will show to allow to click on it.

Hi,

How can I make MenuButton work only when user clicks on it. ie. don't react on mouse move over the MenuButton

Thanks,
Valery


Title: Re: MenuButton question
Post by: stworthy on December 05, 2012, 12:52:49 AM
Try incrementing the value of 'duration' property to delay the moving mouse action.

Code:
<a href="javascript:void(0)" class="easyui-menubutton" data-options="menu:'#mm',duration:50000000">MenuButton</a>


Title: Re: MenuButton question
Post by: mzeddd on December 05, 2012, 04:32:56 AM
Thank you Stworthy!

This is really great idea.