Perspective Menu Tree is perfect for navigation strategy, but sometime we use too system.perspective.navigate to select a view and in this case the tree is not updated according the page opened.
It will be usefull to be able to have a prop change the selection in the menu tree (without double triggering the navigate)
Why not create your own custom wrapper method for system.perspective.navigate that sends a message to a handler on the Menu Tree component telling it how to update? I like to create scripts like this under similarly named custom script libraries. For example, the following might be found within a script library named custom.perspective so that you would simply call custom.perspective.navigate instead of system.perspective.navigate where needed:
def navigate(page, pageId, newSelectionValue):
system.perspective.navigate(page, pageId)
messageType = 'UpdateMenuTree'
payload = {'selection' : newSelectionValue}
system.perspective.sendMessage(messageType, payload)
There is no method exposed to control the selection on the menu tree
Oops, I was thinking of the Perspective Tree component:
Ignore my previous post.
Hi @mazeyrat, has this ever been looked into by the dev team? its a constant source of frustration when combining alternative navigation links in a session view?
Perhaps if more users vote for this feature:
done
Wish this was possible, its really confusing for users when the menu isn't updated.
I added my vote
Yes I found this very annoying !