EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
December 10, 2025, 07:50:03 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
General Discussion
>
have menubutton show menu only on click
Pages: [
1
]
« previous
next »
Print
Author
Topic: have menubutton show menu only on click (Read 24823 times)
jpierce
Jr. Member
Posts: 73
have menubutton show menu only on click
«
on:
July 12, 2013, 07:19:15 AM »
I wish there was an option for menubutton to show its menu only on click, not on hover.
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: have menubutton show menu only on click
«
Reply #1 on:
July 12, 2013, 07:49:41 AM »
The alternative solution is to set a larger 'duration' value to prevent from displaying menu when hovering the button.
Code:
<a href="#" class="easyui-menubutton" data-options="duration:100000000,menu:'#mm',iconCls:'icon-help'">Help</a>
Logged
lloyd
Newbie
Posts: 29
Re: have menubutton show menu only on click
«
Reply #2 on:
August 22, 2013, 08:43:21 AM »
This is what I did.
<div id='toolbar'>
<a id='upload-button' href='javascript:void(0)' accesskey='u' class='easyui-linkbutton' data-options=\"
disabled
: 'true', iconCls: 'icon-upload-doc', plain: 'true'\" onclick='upload(\"#contact-tree\")'>Upload
</a>
</div>
// Enable on row click
$(window).load(function() {
body.bind('click', function(e) {
$('#upload-button').linkbutton('enable');
});
});
Logged
jpierce
Jr. Member
Posts: 73
Re: have menubutton show menu only on click
«
Reply #3 on:
August 22, 2013, 08:46:29 AM »
Thanks for the reply, lloyd. But you might want to wrap your code in a [ code][ /code] block. It's getting munged.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...