<opttree>

JavaScript: lz.opttree
extends <view> » <node> » lz.Eventable »
A keyboard navigable (with arrow keys) tree control that supports selection and dynamic data loading. This tree must be backed by an XML DOM datastructure and presented within a clipping region. The datapath for an opttree must resolve to a single LzDataElement which is the undisplayed root of the tree.

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
depthattr string String __OPTTREE_META_depth read/write
  (Protected) The attribute name to use in the data to mark a a node's depth in the tree hierarchy
depthattrpath string String @__OPTTREE_META_depth read/write
  (Protected) An xpath that selects the depthattr attribute from a node. This should match depthattr but prepend the '@' symbol. This cannot be when=always or when=once because it is used as a reference in a $path expression n baseopttreenode
dragee expression any null read/write
   
dragged expression any null read/write
   
highlighted expression any null read/write
  The keyboard nav highlighted baseopttreenode or null. This attribute is read-only.
nodeclass string String   read/write
  The name of the class to use to represent nodes in the tree.
nodecollection expression any opttreecontroller.nodelist read/write
   
nodelist expression any nodecollection read/write
   
nodepath string String * read/write
  The xpath expression to use to retrieve nodes out of the datapath.
openattr string String __OPTTREE_META_open read/write
  (Protected) The attribute name to use in the data to mark a a node as open.
openattrpath string String @__OPTTREE_META_open read/write
  (Protected) An xpath that selects the openattr attribute from a node. This should match openattr but prepend the '@' symbol. This cannot be when=always or when=once because it is used as a reference in a $path expression in baseopttreenode

Methods

beginDrag()
opttree.beginDrag(who, ix, iy);
Parameter Name Type Description
who    
ix    
iy    

endDrag()
opttree.endDrag(who);
Parameter Name Type Description
who    

recursiveOpen()
opttree.recursiveOpen(p, val);
Parameter Name Type Description
p    
val    

select()
opttree.select(el);
Make the element be open. Open elements display their children; not open elements do not.
Parameter Name Type Description
el    

setAllOpen()
opttree.setAllOpen(val);
Parameter Name Type Description
val    

setOpen()
opttree.setOpen(p : lz.DataElement, val : boolean);
Set the tree node that represents the given LzDataElement to be open. Open elements display their children; not open elements do not.
Parameter Name Type Description
p lz.DataElement The LzDataElement to set this on.
val boolean The new value for the "open" attribute for the given LzDataElement.

updateHierarchy()
opttree.updateHierarchy(p);
Parameter Name Type Description
p    

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy