Arguments
componentRec
The
componentRec
The
property is the name of the tree node item.
name
The
property is an optional icon for the tree node item. If this icon is omitted,
image
Dreamweaver uses a default icon.
The
hasChildren
item is expandable: if
for the tree node item; if
The
toolTipText
The
isCodeViewDraggable
tree node item can be dragged and dropped into Code view.
The
isDesignViewDraggable
tree node item can be dragged and dropped into Design view.
Returns
Nothing.
Example
In the following example, the extension has a chance to handle a double-click on the tree node
item; if it returns the value
function handleDoubleClick(componentRec)
{
var selectedObj = dw.serverComponentsPalette.getSelectedNode();
if(dwscripts.IS_WIN)
{
if (selectedObj && selectedObj.wsRec &&
selectedObj.wsRec[ProxyGeneratorNamePropName])
{
if (selectedObj.objectType == "Root")
{
editWebService();
return true;
}
else if (selectedObj.objectType == "MissingProxyGen")
{
displayMissingProxyGenMessage(componentRec);
editWebService();
return true;
}
}
}
return false;
}
argument is an object that contains the following properties:
property is a Boolean value that indicates whether the tree node
, Dreamweaver displays the Plus (+) and Minus (-) buttons
true
the item is not expandable.
false,
property is an optional tooltip text for the tree node item.
property is a Boolean value that indicates whether the
property is a Boolean value that indicates whether the
, the default behavior is to expand/collapse the nodes.
false
Components panel API functions
419
Need help?
Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?
Questions and answers