Hi all,
I’m using a Perspective Menu Tree with nested items (example: Alarms → Alarm Overview / Alarm Rules, Settings → User Management / Asset Management).
My onItemClicked script works, but I also need the menu to update when a view parameter changes, like:
view.params.source = "Alarm Overview"
What I want
-
Highlight the correct menu item
-
Change icon color
-
Auto-expand its parent (Alarms, Settings, etc.)
-
Only one item selected at a time
-
Works for both root and submenu items
The issue
The source propertyChange script is not consistent:
- submenu does not expand
My question
What is the best way to programmatically select + highlight a Menu Tree item and expand its parent based on a parameter?
If anyone has a clean example script for this, it would help a lot.
Thanks in advance
!