Specifications

Components 207
Populating the tree control
Use the
ComponentRec property to populate a Component panel tree control, so that it appears
within the Component panel in the proper location.
Every node in a tree control must have the following properties:
Component panel API functions
displayInstructions()
Availability
Dreamweaver MX
Description
If there are no component instances (in other words the tree is empty), it displays instructions to
add a new one.
Arguments
None.
Returns
Dreamweaver expects a string.
Example
function displayInstructions()
{
return MM.MSG_WebServicesInstructions;
}
Property name Description Required/Optional
name Name of the tree node item Required
image Icon of the tree node item. If not specified a default icon is used. Optional
hasChildren Responds to clicks on the plus (+) and minus (-) buttons in the
tree control by loading children.This lets you work with a tree
that is not prepopulated.
Required
toolTipText Tooltip text of the tree node item Optional
isCodeViewDraggable Determines whether the item can be dragged and dropped into
the code view.
Optional
isDesignViewDraggable Determines whether the item can be dragged and dropped into
the design view.
Optional