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" or "No"
    EXPAND="Yes" or "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 ...

Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.