Adobe 38040334 - Dreamweaver CS3 User Manual page 166

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Note: The
attribute is ignored for dynamic menu items.
arguments
Returns
Dreamweaver expects nothing.
Example
function receiveArguments()
{
var styleName = arguments[0];
if (styleName == "(None)")
dw.getDocumentDOM('document').applyCSSStyle('','');
else
dw.getDocumentDOM('document').applyCSSStyle('',styleName);
}
setMenuText()
Description
Specifies the text that should appear in the menu.
Note: Do not use this function if you are using "getDynamicContent()" on page 158.
Arguments
{arg1}, {arg2},...{argN}
If the
attribute is defined for a
arguments
function (and to the "canAcceptCommand()" on page 157, "isCommandChecked()" on page 159, and "receiveAr-
guments()" on page 159 functions) as one or more arguments. The
between two menu items that call the same menu command.
Returns
Dreamweaver expects the string that should appear in the menu.
Example
function setMenuText()
{
if (arguments.length != 1) return "";
var whatToDo = arguments[0];
if (whatToDo == "undo")
return dw.getUndoText();
else if (whatToDo == "redo")
return dw.getRedoText();
else return "";
}
windowDimensions()
Description
Sets specific dimensions for the Parameters dialog box. If this function is not defined, the window dimensions are
computed automatically.
tag, the value of that attribute passes to the
menuitem
arguments
DREAMWEAVER CS3
Extending Dreamweaver
setMenuText()
attribute is useful for distinguishing
160

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents