EasyUI Forum
June 25, 2024, 09:47:11 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: how to enable/disable menubutton items  (Read 5940 times)
koysweb
Newbie
*
Posts: 7


View Profile
« on: June 11, 2015, 09:17:53 AM »

Hi,

I need to enable/disable some menubutton items in execution time, depending on a list of items to disable/enable, stored in a database. (My english is no good)

How I do this???  Huh
Logged
yamilbracho
Jr. Member
**
Posts: 64


View Profile Email
« Reply #1 on: June 11, 2015, 11:15:13 AM »

Check the tutorial
 http://www.jeasyui.com/demo/main/index.php?plugin=MenuButton&theme=default&dir=ltr&pitem=#
Logged
koysweb
Newbie
*
Posts: 7


View Profile
« Reply #2 on: June 12, 2015, 05:25:08 AM »

I found this instruction:

Quote
$('#' + Idmenu).menu('disableItem', $('#' + Idmenu).menu('findItem', denven).target);

this works fine in firefox-chromiun's debugger (step by step), but doesn't work when I run it without the debugger  Huh Huh Huh
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!