12.07.2015 Views

Using Zen Components - InterSystems Documentation

Using Zen Components - InterSystems Documentation

Using Zen Components - InterSystems Documentation

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Trees#; child nodes are placed under "ch"Set pTree(4) = $LB("Mammal","Mammal",1,"",1)Set pTree(1,"ch",4) = ""Set pTree(5) = $LB("Cat","Cat",0,"",1)Set pTree(6) = $LB("Dog","Dog",0,"",1)Set pTree(4,"ch",5) = ""Set pTree(4,"ch",6) = ""Set pTree(7) = $LB("Rock","Rock",0,"",1)Set pTree(2,"ch",7) = ""Set pTree(8) = $LB("Fruit","Fruit",1,"",1)Set pTree(3,"ch",8) = ""Set pTree(9) = $LB("Apple","Apple",0,"",1)Set pTree(10) = $LB("Banana","Banana",0,"",1)Set pTree(11) = $LB("Cherry","Cherry",0,"",1)Set pTree(8,"ch",9) = ""Set pTree(8,"ch",10) = ""Set pTree(8,"ch",11) = ""}Quit $$$OK7.4.2.5 AttributesThe component is the XML projection of the %ZEN.Component.dynaTree class. This topic has already describedthe dataGlobal, OnGetNodeInfo, and OnGetTreeInfo attributes in detail. The following table lists all the attributes.The purpose of many attributes is to configure the images that the user clicks to control expansion and contraction.The following diagram shows many of the images that the displays while the component is in use. Thefollowing table describes how to configure these images, if you wish to substitute your own images instead.Attribute<strong>Zen</strong> componentattributesDescription has the same general-purpose attributes as any <strong>Zen</strong> component. Fordescriptions, see these sections:• “Behavior” in the “<strong>Zen</strong> Component Concepts” chapter of <strong>Using</strong> <strong>Zen</strong>• “Component Style Attributes” in the “<strong>Zen</strong> Style” chapter of <strong>Using</strong> <strong>Zen</strong>childIndentHTML length value giving the amount by which each level within the dynaTree shouldbe indented. The default is to use no indentation.childIndent applies only when showLines is false.When showLines is true, indentationis controlled by the to fit the lines that it provides.<strong>Using</strong> <strong>Zen</strong> <strong>Components</strong> 213

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!