canAcceptCommand()
Description
Determines whether the menu item is active or dimmed.
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 thecanAcceptCommand()function (and to the isCommandChecked(), receiveArguments(), 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 a Boolean value: true if the item should be enabled; false otherwise.