Image Names In A Cftree - MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual

Developing web applications with coldfusion
Table of Contents

Advertisement

Chapter 10: Building Dynamic Forms
Example: Multi-level tree control
When populating a CFTREE, you manipulate the structure of the tree by specifying a
TREEITEM parent. In this example, every TREEITEM, except the top level, specifies a
parent. The PARENT attribute allows your CFTREE to show the relationships between
elements in the tree control.
<CFFORM NAME="form1" ACTION="cfform_submit.cfm"
METHOD="Post">
<CFTREE NAME="tree1" HSCROLL="no" VSCROLL="no"
BORDER="no">
<CFTREEITEM VALUE="Divisions">
<CFTREEITEM VALUE="Development"
<CFTREEITEM VALUE="Product One"
<CFTREEITEM VALUE="Product Two"
<CFTREEITEM VALUE="GUI"
<CFTREEITEM VALUE="Kernel"
<CFTREEITEM VALUE="Product Three"
<CFTREEITEM VALUE="QA"
<CFTREEITEM VALUE="Product One"
<CFTREEITEM VALUE="Product Two" PARENT="QA">
<CFTREEITEM VALUE="Product Three"
<CFTREEITEM VALUE="Support"
<CFTREEITEM VALUE="Product Two"
<CFTREEITEM VALUE="Sales"
<CFTREEITEM VALUE="Marketing"
<CFTREEITEM VALUE="Finance"
</CFTREE>
</CFFORM>

Image names in a CFTREE

When you use the TYPE="Image" attribute, ColdFusion attempts to display an image
corresponding to the value in the column, which can be a built-in ColdFusion image
name, or an image of your choice in the
referenced with a relative URL.
PARENT="Divisions" IMG="folder">
PARENT="Development">
PARENT="Development">
PARENT="Product Two" IMG="document">
PARENT="Product Two" IMG="document">
PARENT="Development">
PARENT="Divisions" IMG="folder">
PARENT="QA">
PARENT="QA">
PARENT="Divisions" IMG="fixed">
PARENT="Support">
PARENT="Divisions" IMG="cd">
PARENT="Divisions" IMG="document">
PARENT="Divisions" IMG="element">
directory or subdirectory,
cfide\classes
133

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?

This manual is also suitable for:

Coldfusion 4.5

Table of Contents