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 the arguments attribute is defined for a menuitem tag, the value of that attribute passes to the canAcceptCommand() function (and to the , , and functions) as one or more arguments. The arguments attribute is useful for distinguishing between two menu items that call the same menu command.

    NOTE

    The arguments attribute is ignored for dynamic menu items.

Returns

Adobe Dreamweaver expects a Boolean value: true if the item should be enabled; false otherwise.