Version 8.1.40.
Yea pretty much the same code..
if event.enabled:
custom.log.operAction("Page Change", "url", event.target, session=self.session.info)
# end if
system.perspective.print("menu-home/HorizontalMenu/onItemClicked - event: %s" % event)
JSON for item[4] which has 3 child items:
{
"enabled": true,
"target": "",
"items": [
{
"enabled": true,
"target": "/sander3/overview",
"items": [],
"icon": {
"path": ""
},
"label": "Sander 3",
"style": {
"classes": ""
}
},
{
"enabled": true,
"target": "",
"items": [],
"icon": {
"path": ""
},
"label": "Sander 4",
"style": {
"classes": ""
}
},
{
"enabled": true,
"target": "",
"items": [],
"icon": {
"path": ""
},
"label": "Sander 5",
"style": {
"classes": ""
}
}
],
"icon": {
"path": ""
},
"label": "Sanders",
"style": {
"classes": ""
}
}
I only get ONE entry in the browser console, and it is for the main "Sanders" button NOT the child button that controls navigation to "/sander3/overview".
menu-home/HorizontalMenu/onItemClicked - event: {"label":"Sanders","enabled":true,"target":"","path":[4]}