EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Alfred on April 07, 2018, 02:07:33 AM



Title: Show menu item on onclick
Post by: Alfred on April 07, 2018, 02:07:33 AM
How to show menu item on onclick instead of hovering on the menubutton. I am using the code in this link:

https://www.jeasyui.com/demo/main/index.php?plugin=MenuButton&theme=material&dir=ltr&pitem=&sort= (https://www.jeasyui.com/demo/main/index.php?plugin=MenuButton&theme=material&dir=ltr&pitem=&sort=)

When we hover over the menubutton, it shows the menu item. But I want the menu item to be shown only clicking on the menubutton. I did try the duration option but I don't like the behaviour when the mouse pointer leave the menu item. I want to hide the menu item when mouse pointer leaves. Please help.

Regards

Dove


Title: Re: Show menu item on onclick
Post by: stworthy on April 07, 2018, 05:10:32 PM
Please set the 'showEvent' property to 'click'. This property is available in a newer version that can be downloaded from https://www.jeasyui.com/download/v154.php


Title: Re: Show menu item on onclick
Post by: Alfred on April 07, 2018, 08:30:47 PM
Thank you. It works as expected. I think this must have a place in your documentation.


Title: Re: Show menu item on onclick
Post by: medandevelop on August 27, 2018, 09:16:49 PM
how about both hover and click?