228
CFTREEITEM
Use CFTREEITEM to populate a tree control created with
elements. You can use the IMG values supplied with ColdFusion or reference your own
icons.
Note
Syntax
<CFTREEITEM VALUE="text"
DISPLAY="text"
PARENT="parent_name"
IMG="filename"
IMGOPEN="filename"
HREF="URL"
TARGET="URL_target"
QUERY="queryname"
QUERYASROOT="Yes/No"
EXPAND="Yes/No">
VALUE
Required. Value passed when the CFFORM is submitted. When populating a
CFTREE with data from a CFQUERY, columns are specified in a comma-separated
list:
VALUE="dept_id,emp_id"
DISPLAY
Optional. The label for the tree item. Default is VALUE. When populating a
CFTREE with data from a CFQUERY, display names are specified in a comma-
separated list:
DISPLAY="dept_name,emp_name"
PARENT
Optional. Value for tree item parent.
IMG
Optional. Image name or filename for the tree item. When populating a CFTREE
with data from a CFQUERY, images or filenames for each level of the tree are
specified in a comma-separated list.
The default image name is "Folder. " A number of images are supplied and can be
specified using only the image name (no file extension):
cd
computer
document
element
CFTREEITEM incorporates a Java applet, so a browser must be Java-
enabled for CFTREE to work properly.
CFML Language Reference
CFTREE
with individual
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?
Questions and answers