Wijmo UI for the Web
setItemDisabled Method
wijmo.menu Namespace > wijmenu type : setItemDisabled Method
Indicates the item to be disabled. The parameter's type is jQuery selector.
If the value for this parameter is true, then the menu item will be disabled. The parameter's type is Boolean.
The setItemDisabled method allows the user to disable a specific menu item.
Syntax
$(function () {
    var returnsValue; // Type:  any
    // Parameters
    var selector; // Type:  any
    var disabled; // Type:  bool
    
    returnsValue = $(".selector").wijmenu("setItemDisabled", selector, disabled);
});
function setItemDisabled( 
   selector : any,
   disabled : bool
) : any;

Parameters

selector
Indicates the item to be disabled. The parameter's type is jQuery selector.
disabled
If the value for this parameter is true, then the menu item will be disabled. The parameter's type is Boolean.
Example
//Disables a menuitem with "sub-item" class.
$(".selector").wijmenu("setItemDisabled", $(".sub-item"), true);
See Also

Reference

wijmenu type
wijmenu jQuery Widget