Specifications

Chapter 17214
toolTipText Optional tool tip text for the tree node item.
isCodeViewDraggable A Boolean value that indicates whether the tree node item can be
dragged and dropped into the code view.
isDesignViewDraggable A Boolean value that indicates whether the tree node item can be
dragged and dropped into the design view.
Returns
Dreamweaver expects nothing.
Example
function handleDoubleClick(componentRec)
{
if (componentRec &&
((componentRec.objectType=="Table")||
(componentRec.objectType=="View")))
{
var objname = componentRec.name;
var connname = componentRec.parent.parent.parent.name;
var sqlstatement = "Select * from " + objname;
MMDB.showResultset(connname,sqlstatement);
return true;
}
return false;
}
toolbarControls()
Availability
Dreamweaver MX
Description
Every component type returns a list of toolBarButtonRec objects, which represents the toolbar
icons, in left to right order. Each
toolBarButtonRec object contains these properties:
Property Name Description
image Path to image file
disabledImage Optional; path to disabled image looks for the toolbar button
pressedImage Optional; path to pressed image looks for the toolbar button
toolTipText Tooltip for the toolbar button
toolStyle Left /right
enabled JavaScript code that returns a Boolean value (true or false). The enablers are
called when the following conditions exist:
- When dreamweaver.serverComponents.refresh() is called
- When the selection in the tree changes
- When server model changes
command The JavaScript code to execute. The command handler can force a refresh using
dreamweaver.serverComponents.refresh().
menuId The menu ID for pop-up menu button when a button is clicked. When this ID is
present, it overrides the command handler. Ideally, they should be mutually
exclusive.