212
Menus and Menu Commands
receiveArguments()
Description
Processes any arguments passed from a menu item or from the
dw.runCommand()
function.
If it is a dynamic menu item, it processes the dynamic menu item ID.
Arguments
{arg1}, {arg2},...{argN}
■
If it is a dynamic menu item, the unique ID that the
getDynamicContents()
function
specifies is the only argument. Otherwise, if the
arguments
attribute is defined for a
menuitem
tag, the value of that attribute passes to the
receiveArguments()
function
(and to the
canAcceptCommand()
,
isCommandChecked()
, and
setMenuText()
functions) as one or more arguments. The
arguments
attribute is useful for distinguishing
between two menu items that call the same menu command.
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.
Arguments
{arg1}, {arg2},...{argN}
NO
TE
The
arguments
attribute is ignored for dynamic menu items.
NO
T
E
Do not use this function if you are using
getDynamicContent()
.
Содержание DREAMWEAVER 8-EXTENDING DREAMWEAVER
Страница 1: ...Extending Dreamweaver...
Страница 8: ...8 Contents...
Страница 14: ...14 Introduction...
Страница 16: ......
Страница 54: ...54 Customizing Dreamweaver...
Страница 96: ...96 Customizing Code View...
Страница 98: ......
Страница 110: ...110 Extending Dreamweaver...
Страница 138: ......
Страница 166: ...166 Insert Bar Objects...
Страница 180: ...180 Commands...
Страница 248: ...248 Toolbars...
Страница 260: ...260 Reports...
Страница 278: ...278 Tag Libraries and Editors...
Страница 288: ...288 Property Inspectors...
Страница 378: ...378 Server Behaviors...
Страница 398: ...398 Data Sources...
Страница 432: ...432 Server Models...
Страница 456: ...456 Data Translators...
Страница 482: ......
Страница 492: ...492 The Shared Folder...