Adobe 38040334 - Dreamweaver CS3 User Manual page 175

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Example
The following example of
receiveArguments()
field; it gets the value of the Size field as an argument and then reads the value of the Units field in order to produce
a valid value for the CSS property
receiveArguments(newSize){
var dom = dw.getDocumentDOM();
if (newSize != ""){
dom.applyFontMarkupAsStyle('font-size', newSize +
dom.getToolbarItemValue("DW_Toolbar_Text","DW_Text_Units"));
}
else{
dom.removeFontMarkupAsStyle('font-size');
}
}
dom.getToolbarLabel()
Availability
Dreamweaver MX.
Description
This function obtains the label of the specified toolbar. You can use
or hide toolbars.
Arguments
toolbar_id
• The
argument is the ID of the toolbar, which is the value of the ID attribute on the toolbar tag in the
toolbar_id
toolbars.xml file.
Returns
The
name string that is assigned as an attribute on the
label
Example
The following example stores the label for
var label = dom.getToolbarLabel("myEditbar");
dom.getToolbarVisibility()
Availability
Dreamweaver MX.
Description
This function returns a Boolean value that indicates whether the toolbar that is specified by
Arguments
toolbar_id
• The
argument is the ID string that is assigned to the toolbar.
toolbar_id
is in a toolbar command that controls the behavior of a Size text
function:
font-size
in the variable
myEditbar
dom.getToolbarLabel()
tag.
toolbar
:
label
DREAMWEAVER CS3
API Reference
for menus that show
is visible.
toolbar_id
170

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents