Adobe 38040334 - Dreamweaver CS3 User Manual page 92

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

tags have the following attributes:
MM:TREECOLUMN
Attribute name
Description
Name of the column
name
String to appear in column header
value
width
Width of the column in pixels (percentage not supported); default is 100
Optional. Specifies whether the text in the column should be aligned left, right, or
align
center; default is left
Specifies whether the column is visible or hidden
state
For readability,
TREECOLUMN
following example:
<MM:TREECONTROL name="tree1">
<MM:TREECOLUMN name="Column1" width="100" state="visible">
<MM:TREECOLUMN name="Column2" width="80" state="visible">
...
</MM:TREECONTROL>
The
attributes are described in the following table:
MM:TREENODE
Attribute name
Description
Name of the node
name
Contains the content for the given node. For more than one column, this is a pipe-
value
delimited string. To specify an empty column, place a single space character before the
pipe (|).
state
Specifies that the node is expanded or collapsed with the strings
"collapsed"
selected
You can select multiple nodes by setting this attribute on more than one tree node, if
the tree has a MULTIPLE attribute.
icon
Optional. The index of built-in icon to use, starting with 0:
0 = no icon; 1 = Dreamweaver document icon; 2 = multidocument 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"0state="expanded">
<mm:treenode value="node2" state="expanded"></mm:treenode>
<mm:treenode value="node4" state="expanded"></mm:treenode>
</mm:treenode>
</mm:treecontrol>
tags should follow immediately after the
.
tag, as shown in the
MM:TREECONTROL
"expanded"
or
DREAMWEAVER CS3
86
Extending Dreamweaver

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents