MACROMEDIA DREAMWEAVER 8-EXTENDING DREAMWEAVER Manual page 211

Extending dreamweaver
Table of Contents

Advertisement

isCommandChecked()
Description
Determines whether to display a check mark next to the menu item.
Arguments
{arg1}, {arg2},...{argN}
If it is a dynamic menu item, the unique ID that the
specifies is the only argument. Otherwise, if the
tag, the value of that attribute passes to the
menuitem
(and to the
canAcceptCommand()
functions) as one or more arguments. The
between two menu items that call the same menu command.
The arguments attribute is ignored for dynamic menu items.
Returns
Dreamweaver expects a Boolean value:
item;
otherwise.
false
Example
function isCommandChecked()
{
var bChecked = false;
var cssStyle = arguments[0];
if (dw.getDocumentDOM() == null)
return false;
if (cssStyle == "(None)")
{
return dw.cssStylePalette.getSelectedStyle() == '';
}
else
{
return dw.cssStylePalette.getSelectedStyle() == cssStyle;
}
return bChecked;
}
getDynamicContents()
arguments
isCommandChecked()
,
receiveArguments()
attribute is useful for distinguishing
arguments
if a check mark should appear next to the menu
true
attribute is defined for a
function
, and
setMenuText()
The Menu Commands API
function
211

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver 8

Table of Contents