Example
checked="dw.getDocumentDOM() != null && dw.getDocumentDOM().getView() ==
'code'"
value="script"
This attribute is required for pop-up menus, combo boxes, text boxes, and color pickers.
Dreamweaver ignores the
To determine what value to display for pop-up menus and combo boxes, Dreamweaver first
calls
isCommandchecked()
returns a
value for any items, Dreamweaver displays the value for the first one. If no
true
items return a
value or the
true
calls the
getCurrentValue()
specifies. If the control is a combo box, Dreamweaver displays the returned value. If the
control is a pop-up menu, Dreamweaver temporarily adds the returned value to the list and
displays it.
In all other cases, the script returns the current value to display. For pop-up menus or combo
boxes, this value should be one of the items in the menu list. For combo boxes and text boxes,
the value can be any string that the script returns. For color pickers, the value should be a
valid color but Dreamweaver does not enforce this.
The value attribute is equivalent to the
file.
update="update_frequency_list"
Optional. This attribute specifies how often the
handlers should run to update the visible state of the item. The
to the
getUpdateFrequency()
You must specify the update frequency for toolbar items because these items are always visible,
unlike menu items. For this reason, you should always select the lowest frequency possible and
make sure your handlers for the
possible.
236
Toolbars
attribute for other types of items.
value
for each item in the menu. If the
isCommandChecked()
function or executes the script that the
getCurrentValue()
function in a toolbar command file.
,
enabled
checked
isCommandchecked()
function is not defined, Dreamweaver
function in a toolbar command
,
,
enabled
checked
showif
update
, and
handlers are as simple as
value
function
attribute
value
, and
value
attribute is equivalent
Need help?
Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?