Name

CFTREEITEM

Synopsis

<CFTREE> 
  [<CFTREEITEM>]
  ...
</CFTREE>

Used in conjunction with CFTREE to populate a Java tree control.

Attributes

VALUE=" text "

The value to pass when submitting the CFFORM. If populating the tree from a query, multiple column names should be specified in a comma-delimited list. Required.

DISPLAY=" text "

The label to use for the tree item. Label names are specified in a comma-delimited list when populating a tree from a query. Optional. The default is VALUE.

PARENT=" parent_name "

The VALUE of the tree item’s parent. Optional.

IMG=" filename "

The image to use with the tree item. You may specify a path to your own image or use one of the images supplied with ColdFusion by referencing the image name. Multiple images may be assigned to recursive levels of the tree by entering them in a comma-separated list. Valid options for IMG are CD, Computer, Document, Element, Folder, Floppy, Fixed, and Remote. Optional. The default image is Folder. If you choose to use your own image, you should try to limit the size to 20 pixels by 20 pixels.

IMGOPEN=" filename "

Image to display when a tree branch is opened. You may use the same images as the IMG tag or supply your own. Optional.

HREF=" URL "

A URL to associate with the tree item or the name of a query column (from a query used to populate the tree) containing HREF values. If the tree is being populated from a query, HREF URLs can be specified in a comma-delimited list. The URLs may be relative or absolute. ...

Get Programming ColdFusion 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.