The
attributes are described in the following table:
MM:TREENODE
Attribute name
name
value
state
selected
icon
For example, the following tree control has all its nodes expanded:
<mm:treecontrol name="test" style="height:300px;width:300px">
<mm:treenode value="rootnode1" state="expanded">
<mm:treenode value="node1" state="expanded"></mm:treenode>
<mm:treenode value="node3" state="expanded"></mm:treenode>
</mm:treenode>
<mm:treenode value="rootnode2"
<mm:treenode value="node2" state="expanded"></mm:treenode>
<mm:treenode value="node4" state="expanded"></mm:treenode>
</mm:treenode>
</mm:treecontrol>
Manipulating content within a tree control
Tree controls and the nodes within them are implemented as HTML tags. They are parsed by
Dreamweaver and stored in the document tree. These tags can be manipulated in the same
way as any other document node. For more information on
Chapter 5, "The Dreamweaver Document Object Model," on page
Adding nodes
To add a node to an existing tree control programmatically, set the
property of the
innerHTML
Setting the
inner HTML
122
User Interfaces for Extensions
Description
Name of the node
Contains the content for the given node. For more than one column,
this is a pipe-delimited string. To specify an empty column, place a
single space character before the pipe (|).
Specifies that the node is expanded or collapsed with the strings
or
"expanded"
"collapsed"
You can select multiple nodes by setting this attribute on more than
one tree node, if the tree has a MULTIPLE attribute.
Optional. The index of built-in icon to use, starting with 0:
0 = no icon; 1 = DW document icon; 2 = Multidocument icon
state="expanded">
MM:TREECONTROL
property of a tree node creates a nested node.
.
functions and methods, see
DOM
tag or one of the existing
127.
tags.
MM:TREENODE
Need help?
Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?