Macromedia coldfusion 4.5-cfml language reference User Manual

Page of 608
228
CFML Language Reference 
CFTREEITEM
Use CFTREEITEM to populate a tree control created with 
CFTREE
 with individual 
elements. You can use the IMG values supplied with ColdFusion or reference your own 
icons. 
Note
CFTREEITEM incorporates a Java applet, so a browser must be Java-
enabled for CFTREE to work properly.
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