
41
EXTENDING DREAMWEAVER CS4
Customizing Code view
• optionArray, which indicates a list of nested <optionparammenu> and <parammenuitem> to display (used to
support options array parameter type).
Contents
None.
Container
The method or function tag.
<parammenuitem>
Description
For any object (JavaScript) to specify parameter hinting for the parameters that the method or function takes.
Attributes
label, value, icon, {datatype}, object, source
• The label attribute specifies the name Dreamweaver must display. This argument is required.
• The value attribute specifies the value Dreamweaver must drop when the item is selected in the code hints menu.
This argument is required.
• The icon attribute specifies the icon Dreamwaever must use in the code hints menu. This argument is required.
• The datatype attribute enables you to specify string, which indicates that closing quotation marks must be added
when the user selects a value from the code hints menu. This argument is optional.
• 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.
Contents
None.
Container
The parammenu tag.
<optionparammenu>
Description
Used for any object (JavaScript) to specify options array hinting for the arguments that the method or function takes.
An options array is an argument that can have subarguments in the form of
option:value. Most Spry objects use an
options array argument to allow users to configure the behavior of an object (for example, a data set, widget, or effect).
Options arrays generally appear as
{option1: value1, option2: value2, option3: value3, ...}
Attributes
pattern, label, value, icon, type
• The pattern attribute specifies the character(s) that trigger the code hints menu. This argument is required.
• The label attribute specifies the name of the parameter. This argument is required.
Commenti su questo manuale