User Guide

Structuring Tree Controls 151
parent="Divisions" img="folder">
<cftreeitem value="Product One"
parent="QA">
<cftreeitem value="Product Two" parent="QA">
<cftreeitem value="Product Three"
parent="QA">
<cftreeitem value="Support"
parent="Divisions" img="fixed">
<cftreeitem value="Product Two"
parent="Support">
<cftreeitem value="Sales"
parent="Divisions" img="cd">
<cftreeitem value="Marketing"
parent="Divisions" img="document">
<cftreeitem value="Finance"
parent="Divisions" img="element">
</cftree>
</cfform>
Image names in a cftree
When you use the img attribute, ColdFusion displays the specified image beside the
tree items. You can specify a built-in ColdFusion image name or the URL of an image
of your choice, such as http://localhost/Myapp/Images/Level3.gif. As a general rule,
your custom images should be less than 20 pixels high.
The built-in image names are:
cd
computer
document
element
folder
floppy
fixed
remote
Note
You can also control the tree appearance by using the
lookAndFeel attribute to
specify a Windows, Motif, or Metal look.