Event – Adobe Extending Dreamweaver CS4 User Manual
Page 49

43
EXTENDING DREAMWEAVER CS4
Customizing Code view
•
The
value
attribute is the string that Dreamweaver inserts in the document when you select the command. When
the user selects the item from the menu and presses Enter or Return, 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
Dreamweaver does not insert them again.
•
The
icon
attribute, which is optional, specifies the path to an image file that 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
object
attribute refers to the type the menuitem belongs to. For example, Built-In Data Type: String or user-
defined data type custom JavaScript file.
•
The
source
attribute refers to the location in which it is defined or originates from. For example, DOM/Javascript/
custom file.js.
•
The
static
attribute is a Boolean value.
static
=
true
indicates that the method does not work on specific object
instance, but works on object type itself. For example,
Number.MAX_VALUE
•
The
propType
attribute refers to property type, which in turn can be an object type to support cascaded hinting of
properties. For example,
domElement.innerHTML.
•
The
item
attribute refers to the type of element when
propType
attribute is the collection container type. The
item
specifies what type each item in the container is (assuming it is a homogenous set, that is, elements of the same
type).
Contents
None.
Container
The
menu
tag.
Description
This tag describes events of an object and has the following standard attributes.
Attributes
label
,
icon
,
source
,
object
•
The
label
attribute is the name of the event.
•
The
icon
attribute specifies the path to an image file that Dreamweaver displays as an icon beside the menu text.
•
The
source
attribute refers to the location in which it is defined or originates from.
•
The
object
attribute refers to the type the command belongs to.
Container
The
menu
tag.
Example