Table of Contents
setDisabled Method 

Sets the value indicating whether the item is in disabled state.

Syntax
JavaScript
 NavigationItem.setDisabled(disabled)

Parameters

disabled
true to disable the item, otherwise false.
Remarks

Use this function to disable or enable an item. The following logic applies to the disabled item:

  1. A disabled item always uses DisabledStyle;
  2. A disabled menu item does not responde mouse or keyboard event;

Disabling an expanded menu item automatically collapses its sub menu.

See Also