[feature request] Perspective - Menu Tree - sync when using system.perspective.navigate

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. :upside_down_face: