Parammenu – Adobe Extending Dreamweaver CS4 User Manual
Page 46
40
EXTENDING DREAMWEAVER CS4
Customizing Code view
Attributes
pattern
,
icon
,
object
,
source
,
constructor
,
static
,
retType
•
The
pattern
attribute specifies the name of the method and its argument list. It also describes the names of the
object and the method, and the arguments of the method. The menu shows the list of arguments for the method.
The code hints menu appears when the user types
objectname.
(including the period). This menu shows the
methods that have been specified for the object. Then, the code hints menu opens a list of the arguments for the
method, as it does for a function.
•
The
icon
attribute specifies which icon to use.
•
The
object
attribute refers to the type to which the command belongs. 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
constructor
attribute is a Boolean value.
constructor
=
true
refers to the method which constructs the
object instance and is marked separately compared to other object methods.
•
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,
Date.parse(dateString)
•
The
retType
attribute refers to the method return type which in turn can be an object type to support a cascade of
code hints.
Contents
None.
Container
The
menu
tag.
Description
Used for any object (JavaScript) to specify parameter hinting for the parameters that the method or function takes.
Attributes
pattern, name, index, type
•
The
pattern
attribute specifies the character(s) that trigger the code hints menu. This argument is required.
•
The
name
attribute specifies the name of the parameter. This argument is required.
•
The
index
attribute specifies the index number of the parameter being hinted (zero-based). This argument is
required.
•
The
type
attribute specifies the data type. The following data types are supported:
•
enumerated
(the default), which indicates a list of nested
to display.
•
spryDataReferences
, which indicates a list of Spry data set columns.
•
cssStyle
, which indicates a list of CSS classes available to the page.
•
cssId
, which indicates a list of CSS selector ID rules available to the page.