Toolbar functions
225
dom.getToolbarLabel()
Availability
Dreamweaver MX.
Description
This function obtains the label of the specified toolbar. You can use
dom.getToolbarLabel()
for menus that show or hide toolbars.
Arguments
toolbar_id
■
The
toolbar_id
argument is the ID of the toolbar, which is the value of the ID attribute
on the toolbar tag in the toolbars.xml file.
Returns
The
label
name string that is assigned as an attribute on the
toolbar
tag.
Example
The following example stores the label for
myEditbar
in the variable
label
:
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
toolbar_id
is visible.
Arguments
toolbar_id
■
The
toolbar_id
argument is the ID string that is assigned to the toolbar.
Returns
A Boolean value:
true
if the toolbar is visible,
false
if the toolbar is not visible or does not
exist.
000_DW_API_Print.book Page 225 Wednesday, July 20, 2005 11:58 AM
Summary of Contents for DREAMWEAVER 8-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 16: ......
Page 28: ...28 The File I O API...
Page 38: ...38 The HTTP API...
Page 68: ...68 Flash Integration...
Page 100: ...100 The Database API...
Page 116: ...116 The JavaBeans API...
Page 144: ...144 The Source Control Integration API...
Page 146: ......
Page 254: ...254 Workspace...
Page 298: ...298 Site...
Page 354: ...354 Document...
Page 396: ...396 Page Content...
Page 488: ...488 Design...
Page 550: ...550 Code...