Hello everyone,
I'm pretty new to Perspective and am designing navigation menus for my project. I was going to use a horizontal menu for the desktop views and a menu tree for mobile views. Is there a way to script a "previous page" function into these components?
Thanks!
Add a button or item yourself that calls system.perspective.navigateBack
?
On the tree you'll probably have to script on the onItemClicked
event and filter to make sure it only fires for the 'back' item.
That's what I'm trying to do...I can't figure out a way to call system.perspective.navigateBack into a menu item. I don't think a Change Script works and it doesn't seem as though there are other scripting options. Apologies if this is a silly question, like I said I'm still figuring Perspective out.
In both the tree and horizontal menu, you would need to use the onItemClicked
event handler in the event setup. You need to configure these on the component itself, NOT on the individual items in the component. Make sure the component is selected in the project browser tree, and right click on it, and select 'Configure Events'
Ooohhhhh, thank you so much!