# Ignition Perspective – Highlight Selected Menu Tree Item

**URL:** <https://forum.inductiveautomation.com/t/ignition-perspective-highlight-selected-menu-tree-item/110202>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [August 27, 2025, 7:04am UTC](https://forum.inductiveautomation.com/t/ignition-perspective-highlight-selected-menu-tree-item/110202 "2025-08-27T07:04:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ARIFRAHUMAN\_A](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@ARIFRAHUMAN\_A](https://forum.inductiveautomation.com/u/ARIFRAHUMAN_A)\
**Post date:** [August 27, 2025, 7:04am UTC](https://forum.inductiveautomation.com/t/ignition-perspective-highlight-selected-menu-tree-item/110202/1 "2025-08-27T07:04:53Z")

</div>

I have a Menu Tree component with 5 menu items. When I click on an item, I want to detect which item was clicked and change its background color. The selected item should keep the color until I click another item, at which point the new item should be highlighted. Has anyone worked on this type of requirement before? Please share your ideas or suggestions.

---

<div class="post-metadata">

**Author:** ![Cose\_Peter1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cose_peter1/32/79174_2.png) [@Cose\_Peter1](https://forum.inductiveautomation.com/u/Cose_Peter1)\
**Post date:** [August 27, 2025, 7:14am UTC](https://forum.inductiveautomation.com/t/ignition-perspective-highlight-selected-menu-tree-item/110202/2 "2025-08-27T07:14:37Z")

</div>

This can be helpful  
[https://forum.inductiveautomation.com/t/menu-tree-item-highlight-after-selection-on-click/89866/7?u=cose\_peter1](https://forum.inductiveautomation.com/t/menu-tree-item-highlight-after-selection-on-click/89866/7)
