EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 04, 2024, 01:40:26 PM
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
>
hide menu
Pages: [
1
]
« previous
next »
Print
Author
Topic: hide menu (Read 12401 times)
vicente
Newbie
Posts: 8
hide menu
«
on:
October 02, 2013, 11:15:39 PM »
Hello Sir,
how are you?
i am creating a simple menu, in which once a user logon, he could see certain menus only. I can disable it, but i dont want them to have idea why some menu items are disabled. for this I need to hide menu items.
how can I do this in property of menu?
thank you
Logged
mzeddd
Full Member
Posts: 223
Re: hide menu
«
Reply #1 on:
October 03, 2013, 12:54:37 AM »
Hi,
Try to use lines like this to hide/show menu items
<div id="myContextMenu" class="easyui-menu" style="width:140px;">
<div onclick="doThis1();">Export</div>
<div onclick="doThis2(');">Edit</div>
</div>
$($('#myContextMenu').menu('findItem','Edit').target).show();
$($('#myContextMenu').menu('findItem','Edit').target).hide();
Logged
vicente
Newbie
Posts: 8
Re: hide menu
«
Reply #2 on:
October 04, 2013, 11:54:30 PM »
thank you so much sir, it works!
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...