setDimmed()

Syntax:

[void] MenuItem.setDimmed(Boolean flag) 

Description:

Call the setDimmed method to show or hide an existing menu item. By default, a menu item is shown when it is appended to the options menu.

Arguments:

Return value:

This method does not return a value.

Example code:

See the example code in the description of the MenuItem.onSelect property.