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 theargumentsattribute is defined for amenuitemtag, the value of that attribute passes to thereceiveArguments()function (and to the canAcceptCommand(), isCommandChecked(), and setMenuText() functions) as one or more arguments. Theargumentsattribute is useful for distinguishing between two menu items that call the same menu command.NOTE
The
argumentsattribute is ignored for dynamic menu items.
Returns
Adobe Dreamweaver expects nothing.
Example
function receiveArguments(){ var styleName = arguments[0]; if (styleName == "(None)") dw.getDocumentDOM('document').applyCSSStyle('',''); else dw.getDocumentDOM('document').applyCSSStyle('',styleName);}