Changing the icon tree container's settings
All that remains to make the container tree part functional is to complete its settings. Open the settings page for the Container Icon Tree part and enter faceValue for the attributeName property.
Next, select the itemHasChildrenAttributes property in the Name column and ... in the Value column. In the Item Children Accessors window, select the Add push button. A row is added to the table. Enter Card for the Item Class and select hasChildren from the list of the Card part's public attributes in the Has-Children column.
Note:
The list will not appear until you select the cell.
Select OK in the Item Children Accessors window and close the Properties window to accept the changes. Now, whenever the container needs to know whether an item of the Card class has children, it will use its hasChildren get selector to make the determination. The get selector must return a Boolean value.
Note:
This could have been accomplished by connecting the visualInfoRequested event to a script and having the script set the hasChildren field of the callData structure. In fact, you used this alternate technique when you connected the itemChildrenRequested event to the childrenRequested script. Conversely, you could have avoided the event-to-script connection by using the above technique for identifying the childrenRequested script, except the itemChildrenAttributes property would have been used in the settings to get children.
Save the part.
Last modified date: 01/29/2015