[BUG-14025] Menu Tree selected value

Hi
Is it possible to get the value of the item selected / click on on a menu tree?
Thanks

The Menu Tree has on onItemClicked Event, but we recently found that the event is not behaving correctly. When the event is repaired, you should be able to script against an event object with the following attributes:

  • enabled (bool): Whether the item interacted with is enabled.
  • label (str): Text to display for this option.
  • path (list): A list containing the item indexes leading to the item that was clicked.
  • target (str): A url (external) or a mounted path to a page.

Thanks for your reply. Is there any workaround available for the time being?

Not at this time, no.

1 Like

If it helps, the fix for this has been implemented and tested. It should be in one of the upcoming nightly builds for 8.0.5 but has missed the cutoff for 8.0.4 currently.

2 Likes

Thanks for the update …I’ll keep an eye out for it.

Oh yeah, this feature was added in the 8.0.5 nightly build that was uploaded 8/29. So should be in the latest 8.0.5 builds.
As a side note, a similar issue occurs with the tree component which is currently being fixed/tested and will be in an upcoming 8.0.5 nightly build.

1 Like