The required attributes are name, id, and either
file or command, as marked with an asterisk in Table 33-2.
TABLE 33-2
Menuitem Tag Attributes
Attribute Possible Value Description
name* Any menu name The name of the menu item as it appears on the menu. An
underscore character causes the following letter to be underlined
for Windows??™ shortcuts??”for example, _Frames becomes
Frames.
id* Any unique name The identifying term for the menu item.
key Any special key or The keyboard shortcut used to execute the command.
keyboard key plus
modifier(s)
platform win or mac The operating system valid for the current menu item. If the
platform parameter is omitted, the menu item is applicable for
both systems.
enabled JavaScript function If present, governs whether a menu item is active (the function
returns true) or dimmed (the function returns false). Including
enabled=true ensures that the function is always available.
command* (required JavaScript function Executed when the menu item is selected. This inline JavaScript
if file is not used) function capability is used for simple functions.
file* (required if Path to a JavaScript file The JavaScript file is executed when the menu item is selected;
command is not used) the path is relative to the Configuration folder.
Pages:
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748