Optionalprops: TMenuItemPropsProtected Readonly_handlesProtected_idThe unique ID for this entity. Once set, this should never change.
Protected_isProtected Readonly_itemThe item type for this entity when it participates in an App.
StaticfactoryThe factory that will be used whenever a new menu item needs to be created. Applications can supply their own factory to customize menu item creation.
The alternate state to set when the menu item is toggled.
Determines whether this item supports toggling.
A longer description explaining what the item does, typically displayed in a tooltip.
Determines how a parent object should handle initialization failure in this object. The default is "warn".
"error": support/InitializeError!InitializeError is thrown."warn": Message is logged and
support/InitializableBase!InitializeWarningEvent is raised."ignore": support/InitializableBase!InitializeWarningEvent is
raised.Determines whether the item should be hidden when menus/MenuItem!MenuItem.isEnabled is set to false. The default is false.
The ID of the icon to show for this item, e.g. "gcx-icon-zoom-in".
The unique ID for this entity.
Determines whether the user is able to select this item.
Determines whether this item is currently toggled from its initial state. This property is only meaningful if menus/MenuItem!MenuItem.canBeToggled is true. When this property is changed, other properties of the menu item will be swapped with those in "alternate". An item can only be toggled if it has an alternate state.
The item type for this entity when it participates in an App.
The parent menu that this item belongs to.
The root menu in the menu hierarchy.
A submenu associated with this item.
The human-readable caption for the item.
Protected_getThe property keys and their metadata that are used to implement serializing and deserializing the class instance.
Protected_initializableCollections of child items to initialize. Items that fail to initialize are removed from the collection.
Protected_initializeProtected_onProtected_onCalled to perform initialization of the support/InitializableBase!InitializableBase. Subclasses should override this method rather than initialize() to perform custom initialization.
Protected_postProtected_toConverts the value to a PropertyDef object.
The value to convert.
Returns the serializable properties.
OptionalserializeMode: SerializeModeOptional. If specified, only properties that support the given serialization mode will be returned.
StaticcreateCreates the appropriate subclass of menus/MenuItem!MenuItem based on the supplied properties. Applications can customize the default creation behavior by supplying a custom factory object (see menus/MenuItem!MenuItem.factory).
The menu item properties.
An item within a menus/Menu!Menu.