Wijmo UI for the Web
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
Javascript (Usage) 
$(function () {
    var returnsValue; // Type:  any
    // Parameters
    var selector; // Type:  any
    var disabled; // Type:  bool
    
    returnsValue = $(".selector").wijmenu("setItemDisabled", selector, disabled);
});
Javascript (Specification) 
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);
Browser Compatibility
7
5
5

See Also

Reference

wijmenu type
wijmenu jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.