Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
web:tree [2018/08/02 20:55]
agcyphers [Events]
web:tree [2019/03/17 13:47]
agcyphers [Examples]
Line 58: Line 58:
 ^ Name      ^ Type       ^ Default Value       ^ Description ​      ^ ^ Name      ^ Type       ^ Default Value       ^ Description ​      ^
 | AllowEdit | [[http://​developer.xojo.com/​boolean|Boolean]] | False | If True, users will be able to edit the contents of individual rows. NOTE: This property should only be set in the IDE's Inspector. | | AllowEdit | [[http://​developer.xojo.com/​boolean|Boolean]] | False | If True, users will be able to edit the contents of individual rows. NOTE: This property should only be set in the IDE's Inspector. |
-| Checkboxes | [[http://​developer.xojo.com/​boolean|Boolean]] | True | If True, items with Checkbox = True will show a checkbox in the tree. | 
 | IconCheckbox | [[http://​developer.xojo.com/​string|String]] | ""​ | A FontAwesome icon string to use for an empty checkbox. | | IconCheckbox | [[http://​developer.xojo.com/​string|String]] | ""​ | A FontAwesome icon string to use for an empty checkbox. |
 | IconCheckboxChecked | [[http://​developer.xojo.com/​string|String]] | "​fa-checked-square-o"​ | A FontAwesome icon string to use for checked checkboxes. | | IconCheckboxChecked | [[http://​developer.xojo.com/​string|String]] | "​fa-checked-square-o"​ | A FontAwesome icon string to use for checked checkboxes. |
Line 73: Line 72:
  
 ==== Examples ==== ==== Examples ====
-There are currently no examples ​for this class.+=== Creating an Item with a FontAwesome Icon === 
 +GraffitiWebTree provides a constructor ​for creating items that have a FontAwesome icon to the left of the node's text. 
 + 
 +<code xojo>dim firstItemFirstChild as new GraffitiWebTreeItem( "test child",​ "fas fa-times"​ ) 
 +firstItemFirstChild.Checkbox = True 
 +me.AddItem( firstItemFirstChild,​ firstItem )</​code>​