Adding tree controls
Tree controls display data in a hierarchical format and let users expand and collapse nodes in the tree. The
tag lets you create tree controls for any type of information; unlike the database tree control that
MM:TREECONTROL
is described in "Adding a database tree control" on page 83, no association with a database is required. The Dream-
weaver Keyboard Shortcuts editor uses the tree control, as shown in the following figure:
Creating a tree control
The
tag creates a tree control and can use one or more tags to add structure, as described in the
MM:TREECONTROL
following list:
•
is an empty, optional tag that defines a column in the tree control.
MM:TREECOLUMN
•
is an optional tag that defines a node in the tree. It is a nonempty tag that can contain only other
MM:TREENODE
tags.
MM:TREENODE
tags have the following attributes:
MM:TREECONTROL
Attribute name
Description
name
Name of the tree control
Optional. Number of rows that show in the control; default is 5 rows
size
Optional. If the number of nodes in the
theControl
the size attribute, scrollbars appear
Optional. Allows multiple selections; default is single-selection
multiple
style
Optional. Style definition for height and width of tree control; if specified, takes prece-
dence over the
noheaders
Optional. Specifies that the column headers should not appear
theControl
attribute
size
attribute exceeds the value of
DREAMWEAVER CS3
85
Extending Dreamweaver