Difference between revisions of "Treeitem"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages. | Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages. | ||
+ | |||
+ | ====Description==== | ||
+ | Shown below in a standalone [[Form]]. Click the image to see in a [[Custom_Sections_and_Gadgets|Custom Section]] in a Lianja [[Page Attributes|Page]]. | ||
+ | |||
+ | [[{{ns:file}}:tree_treeitem.png|link={{filepath:tree_treeitem_cs.png}}|Treeitem]] | ||
+ | |||
+ | Treeitems are hierarchical nodes in a [[Tree]] grid. | ||
====Properties==== | ====Properties==== | ||
Line 5: | Line 12: | ||
This class supports the [[:Category:Common_Properties|Common Properties]] plus the following: | This class supports the [[:Category:Common_Properties|Common Properties]] plus the following: | ||
− | {| class="wikitable" width=100% | + | {| class="wikitable" width="100%" |
!width="20%"|Property | !width="20%"|Property | ||
!Access (R/RW) | !Access (R/RW) | ||
Line 11: | Line 18: | ||
!width="50%"|Description | !width="50%"|Description | ||
|- | |- | ||
− | | | + | |Checkstate |
|RW | |RW | ||
− | | | + | |Boolean |
− | | | + | |Whether the item is checked or not |
|- | |- | ||
− | | | + | |ChildCount |
− | | | + | |R |
− | | | + | |Numeric |
− | | | + | |Number of child items below this item |
|- | |- | ||
|Picture | |Picture | ||
Line 26: | Line 33: | ||
|Filename of image displayed | |Filename of image displayed | ||
|- | |- | ||
− | | | + | |Showchildindicator |
|RW | |RW | ||
|Boolean | |Boolean | ||
− | |Whether the item | + | |Whether indicator should be displayed if item has child items |
+ | |- | ||
+ | |Text | ||
+ | |RW | ||
+ | |Character | ||
+ | |Text displayed in the item | ||
|- | |- | ||
|Tooltiptext | |Tooltiptext | ||
Line 36: | Line 48: | ||
|Text displayed when mouse hovers over item | |Text displayed when mouse hovers over item | ||
|- | |- | ||
− | | | + | |Value |
|RW | |RW | ||
− | | | + | |Character |
− | | | + | |Value of the item |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
|} | |} | ||
Line 50: | Line 57: | ||
====Methods==== | ====Methods==== | ||
− | This class supports the | + | This class supports the [[:Category:Common_Methods|Common Methods]] plus the following: |
− | {| class="wikitable" width=100% | + | {| class="wikitable" width="100%" |
!width="20%"|Method | !width="20%"|Method | ||
!Args | !Args | ||
Line 69: | Line 76: | ||
|Add an existing object or a new object, in which case the object's class must also be specified | |Add an existing object or a new object, in which case the object's class must also be specified | ||
|- | |- | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|Clear | |Clear | ||
|None | |None | ||
|Clear the item | |Clear the item | ||
+ | |- | ||
+ | |Collapse | ||
+ | |None | ||
+ | |Collapse the item to hide any child items | ||
|- | |- | ||
|Expand | |Expand | ||
Line 81: | Line 89: | ||
|Expand the item to display any child items | |Expand the item to display any child items | ||
|- | |- | ||
− | | | + | |
− | | | + | |Removeobject |
− | | | + | |existing as Object |
+ | |Remove the specified object | ||
|- | |- | ||
|Text | |Text | ||
Line 93: | Line 102: | ||
====Events==== | ====Events==== | ||
− | This class supports the | + | This class supports the [[:Category:Common_Events|Common Events]] plus the following: |
− | {| class="wikitable" width=100% | + | {| class="wikitable" width="100%" |
!width="20%"|Event | !width="20%"|Event | ||
!Args | !Args |
Latest revision as of 10:46, 9 April 2018
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
Contents
Description
Shown below in a standalone Form. Click the image to see in a Custom Section in a Lianja Page.
Treeitems are hierarchical nodes in a Tree grid.
Properties
This class supports the Common Properties plus the following:
Property | Access (R/RW) | Value | Description |
---|---|---|---|
Checkstate | RW | Boolean | Whether the item is checked or not |
ChildCount | R | Numeric | Number of child items below this item |
Picture | RW | Character | Filename of image displayed |
Showchildindicator | RW | Boolean | Whether indicator should be displayed if item has child items |
Text | RW | Character | Text displayed in the item |
Tooltiptext | RW | Character | Text displayed when mouse hovers over item |
Value | RW | Character | Value of the item |
Methods
This class supports the Common Methods plus the following:
Method | Args | Description |
---|---|---|
Additem | [icon as Character,] caption as Character | Add an item, specifying the item caption and optionally an icon filename |
Additems | selectstring as Character | items as Array[, icon as Character] | Add items based on an SQL SELECT query or from an array, optionally including an icon filename |
Addobject | existing as Object | newobject as Character, class as Character | Add an existing object or a new object, in which case the object's class must also be specified |
Clear | None | Clear the item |
Collapse | None | Collapse the item to hide any child items |
Expand | None | Expand the item to display any child items |
Removeobject | existing as Object | Remove the specified object |
Text | column as Numeric | Text displayed at the specified item column |
Events
This class supports the Common Events plus the following:
Event | Args | Description |
---|