<menuitem>
Description
This tag specifies the text for an item in a Code Hints pop-up menu. The menuitem
tag also specifies the value to insert into the text when you select the item.
Attributes
label, value
{icon
}, {texticon
}
- The
label
attribute is the string that Adobe Dreamweaver displays in the pop-up menu. - The
value
attribute is the string that Adobe Dreamweaver inserts in the document when you select the menu item. When the user selects the item from the menu and presses Enter or Return, Adobe Dreamweaver replaces all the text that the user typed since the menu opened. The user typed the pattern-matching characters before the menu opened, so Adobe Dreamweaver does not insert them again. For example, if you want to insert&
, which is the HTML entity for ampersand (&), you can define the followingmenu
andmenuitem
tags:<menu pattern=
"
&"
><menuitem label="
&amp;"
value="
amp;"
texticon="
&"
/>The value attribute does not include the ampersand (&) character because the user typed it before the menu opened.
- The
icon
attribute, which is optional, specifies the path to an image file that Adobe Dreamweaver displays as an icon to the left of the menu text. The location is expressed as a URL, relative to the Configuration folder. - The
texticon
attribute, which is optional, specifies a text string to appear in the icon area instead of an image file. This attribute is used for the HTML Entities menu.
Contents
None.
Container
The menu
tag.
Example
<menuitem label="CONTENT_TYPE" value=""CONTENT_TYPE")" icon="shared/mm/images/hintMisc.gif" />