EasyUI Forum
May 04, 2024, 01:40:26 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: hide menu  (Read 12401 times)
vicente
Newbie
*
Posts: 8


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



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


View Profile
« Reply #2 on: October 04, 2013, 11:54:30 PM »

thank you so much sir, it works!
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!