Previous Topic: lsWriteNext Topic: menuItem


menubarItem

The menubarItem macro defines an item on a menubar. You define a menubar page with the startMenubar, menubarItem, endMenubar, startMenu, menuItem, menuItemLocal, and endMenu macros. For example:

<PDM_MACRO name=startMenubar. . .>
<PDM_MACRO name=menubarItem. . .>
<PDM_MACRO name=menubarItem. . .>
. . .
<PDM_MACRO name=endMenubar>
<PDM_MACRO name=startMenu. . .>
<PDM_MACRO name=menuItem. . .>
<PDM_MACRO name=menuItemLocal. . .>
. . .
<PDM_MACRO name=endMenu>
<PDM_MACRO name=startMenu. . .> 
. . .
<PDM_MACRO name=endMenu>
. . .

This macro has the following properties:

hotkey=string

Provides a hotkey suggestion for this menubar item. CA Service Desk Manager selects the hotkey for the menubar item from the characters in the string; otherwise, it selects the hotkey from the characters in the label.

id=name

(Required) Specifies a JavaScript identifier for the menubar item.

Note: The startMenu macro references this identifier. The startMenu macro defines the contents of the menu dropped down from the menubar for this item.

img=url

Specifies the URL of an image to display on the toolbar section of the menubar.

label=text

(Required) Specifies the text of the menu bar item.

variable=name

Specifies a JavaScript variable that can be used to reference the menubar item. This property is not intended for customer use.