# Tree View Dynamic Leaf Icons

**URL:** <https://forum.inductiveautomation.com/t/tree-view-dynamic-leaf-icons/7754>\
**Category:** Ignition\
**Created:** [December 23, 2013, 3:07pm UTC](https://forum.inductiveautomation.com/t/tree-view-dynamic-leaf-icons/7754 "2013-12-23T15:07:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndyP](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@AndyP](https://forum.inductiveautomation.com/u/AndyP)\
**Post date:** [December 23, 2013, 3:07pm UTC](https://forum.inductiveautomation.com/t/tree-view-dynamic-leaf-icons/7754/1 "2013-12-23T15:07:35Z")

</div>

Hi

The Ignition User Manual has a picture of a tree view component, where one of the icons is an exclamation mark - presumeably linked to a tag that is experiencing an issue.

I’m trying to figure out how to implement this scenario (for example, my tree view represents several sites, and I’d like the folders to be red, and the icons to represent the severity of the problem, so that the user can quickly navigate to the root cause of an issue).

Is something I’ll have to script up myself, or does Ignition provide a quick way of achieving this?

Thanks  
Karen

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [December 23, 2013, 4:11pm UTC](https://forum.inductiveautomation.com/t/tree-view-dynamic-leaf-icons/7754/2 "2013-12-23T16:11:59Z")

</div>

Hi Karen,

The Tree View component uses the data in the Items/data dataset property to build up the tree. This dataset has columns “icon” and “selectedIcon” to specifiy the icon used for each leaf node in the tree.

By default these column values are “default”. But you can change this to an image path to specify a different icon.

The Tree View component also has the properties “defaultLeafIconPath”, “defaultOpenIconPath” and “defaultClosedIconPath” for specifying the default icons for leafs and folders.

Home this helps some.

Nick
