Adobe 38040334 - Dreamweaver CS3 User Manual page 395

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Returns
Nothing.
Example
If the user creates a record set called "
dw.codeHints.addMenu(
_
"CodeHints
object
"myRS.",
new Array("firstName", "lastName"),
new Array("firstName", "lastName"),
null,
_
_
"ASP
VB, ASP
JS");
dreamweaver.codeHints.addFunction()
Availability
Dreamweaver MX.
Description
Dynamically defines a new
type, this function replaces the existing
Arguments
menuGroupId, pattern, {doctypes}, {casesensitive}
• The
argument is the ID string attribute of a
menuGroupId
• The
argument is a string that specifies the pattern attribute for the new
pattern
• The
argument, which is optional, specifies that this function is active for only certain document types.
doctypes
You can specify the
doctypes
weaver document types, see the Dreamweaver Configuration/Documenttypes/MMDocumentTypes.xml file.
• The
argument, which is optional, specifies whether the pattern is case-sensitive. The possible
casesensitive
values for the
casesensitive
omit this argument. If the
that the user types exactly matches the pattern that the pattern attribute specifies. If
value, the menu appears even if the pattern is lowercase and the text is uppercase.
Returns
Nothing.
Example
The following example of the
to the Code Hints menu group
out.newLine()
document types:
dw.codeHints.addFunction(
_
"CodeHints
Object
"out.newLine()",
"JSP")
", the following code would create a menu for
myRs
_
methods",
// menu is enabled if object methods are enabled
// pop up menu if user types "myRS."
// items in drop-down menu for myRS
// text to actually insert in document
// no icons for this menu
tag. If there is an existing
function
tag.
function
argument as a comma-separated list of document type IDs. For a list of Dream-
argument are the Boolean values
argument is a
casesensitive
dw.codeHints.addFunction()
CodeHints
_
Methods",
// specific to the ASP doc types
tag with the same pattern and document
function
tag.
menugroup
or
. The value defaults to
true
false
value, the Code Hints menu appears only if the text
true
function adds the function name pattern
and makes it active only for
_
_
Object
Methods
DREAMWEAVER CS3
API Reference
:
myRS
tag.
function
if you
false
is a
casesensitive
false
JSP
390

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents