wijmo.menu Namespace > wijmenu type : setItemDisabled Method |
Javascript (Usage) | |
---|---|
$(function () { var returnsValue; // Type: any // Parameters var selector; // Type: any var disabled; // Type: bool returnsValue = $(".selector").wijmenu("setItemDisabled", selector, disabled); }); |
//Disables a menuitem with "sub-item" class. $(".selector").wijmenu("setItemDisabled", $(".sub-item"), true);