I'm trying to link an AdaptiveMenu's member to its corresponding item.
The item can have properties that the member would not have eg. backgroundColor, backgroundImage, styleName, prompt etc...
By linking the member with it's corresponding item, can can assign that properties to the member.
The only way to do its currently is by title or icon.
The problem is that there can be duplicate titles/icon, depending on the menu context.
In the ISC_Grid.js debug source, I saw that the members properties are set in the createChildren() method.
I then tried to override the createChildren() method by adding an id property(menuid) that was set for the item.
It worked fine when you run you application with the modules-debug code, but went in to an endless loop with the compressed modules.
Is there maybe another way to link the members to it's corresponding items ?
I'm using Version: v12.0p_2018-07-12/LGPL Development Only
The item can have properties that the member would not have eg. backgroundColor, backgroundImage, styleName, prompt etc...
By linking the member with it's corresponding item, can can assign that properties to the member.
The only way to do its currently is by title or icon.
The problem is that there can be duplicate titles/icon, depending on the menu context.
In the ISC_Grid.js debug source, I saw that the members properties are set in the createChildren() method.
I then tried to override the createChildren() method by adding an id property(menuid) that was set for the item.
Code:
lastMember = this.createAutoChild("inlineMenuItem", { icon: item.icon, title: item.title, click: item.click, MENUID: item.MENUID // newly added line })
Is there maybe another way to link the members to it's corresponding items ?
I'm using Version: v12.0p_2018-07-12/LGPL Development Only
Comment