LinkMenuItem

Represents an individual link item that is displayed within a MainMenu or ContextMenu.

The LinkMenuItem, when clicked, will navigate to the location specified in the HRef property.

In order for a LinkMenuItem to be displayed, you must add it to a MainMenu or ContextMenu.

The LinkMenuItem class provides properties that enable you to configure the appearance and functionality of a link menu item. To display a check mark next to a link menu item, use the Checked property. The Shortcut property can be used to define a keyboard combination that can be pressed to select the menu item.

For LinkMenuItem objects displayed in a Multiple Document Interface (MDI) application, you can use the MergeMenu method to merge the menus of an MDI parent for with that of its child forms to create a consolidated menu structure. Because a LinkMenuItem cannot be reused in multiple locations at the same time, such as in a MainMenu and a ContextMenu, you can use the CloneMenu method to create a copy of a LinkMenuItem for use in another location.

The Popup event enables you to perform tasks before a menu is displayed. For example, you can create an event handler for this event to display or hide menu items based on the state of your code. The Select event enables you to perform tasks such as providing detailed help for your application's menu items when the user places the mouse pointer over a menu item.

For a full list of properties, methods and events see the API documentation.

Advanced

JavaScript Widget

ItemDescription

Class name

"wisej.web.menu.MenuItem"

Theme appearance

"item", see Themes.

Child components

"icon" is the item's icon, if applicable.

Source code

Last updated