Oct 14, 2014, 12:24 PM
[CLOSED] MenuItem hRef - Update attribute
I am looking to update a menuItem hRef in a contextMenu based on the item selected. I know hRef is a config attribute and I need to write a new function to do this. I looked at the suggestion in MenuItem Href Dynamic Update which was related to v1.
The error is "Cannot read property 'set' of undefined."
var setHref = function (menuItem, url) {
menuItem.el.set({
href : url
});
};
I am having issue with the line:
menuItem.el.set({href : url});
Last edited by Daniil; Oct 14, 2014 at 2:16 PM.
Reason: [CLOSED]