56.1 Overview

Treeviewleaf class is needed when creating treeviews. It allows you to define the single leaves of the treeview and set different attributes for them. Each leaf of your treeview has to contain an entry for every column of your treeview. Thus, your <leaf> declarations must include as many <item> declarations as there are columns in your treeview. See Treeviewleafitem class for details.

Treeviewleaf class must always be embedded inside a <treeview> declaration. See Treeview class for details.

Note that you cannot create instances of this class using moai.CreateObject(). Instead, you have to use Treeview.InsertLeaf to create leaves at runtime.


Show TOC