EasyUI Forum
March 28, 2024, 01:21:49 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Show menu item on onclick  (Read 5670 times)
Alfred
Full Member
***
Posts: 134


-Licensed User-


View Profile
« 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=

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
« Last Edit: April 07, 2018, 02:15:16 AM by dove » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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
Logged
Alfred
Full Member
***
Posts: 134


-Licensed User-


View Profile
« Reply #2 on: April 07, 2018, 08:30:47 PM »

Thank you. It works as expected. I think this must have a place in your documentation.
Logged
medandevelop
Newbie
*
Posts: 9


View Profile
« Reply #3 on: August 27, 2018, 09:16:49 PM »

how about both hover and click?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!