3 Replies Latest reply on Dec 16, 2015 4:44 AM by Loic.Aigon

    How to disable menu using JS?

    K159 Level 1

      Hi.

       

      I did add menu using JS.

       

      I want to disable one of the added menu item.

       

      But menu enabled option is readonly.

       

      app.menus.item("$ID/Main").submenus.item("MyTestMenu").menuItems.item("My Menu Item 2").enabled = false;

       

      How to set disable menu?

       

      Thanks.