You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have a parameter you can specify that will be called to return the array that will be supplied to the nested menu before it is rendered. I'm thinking this can be simple function that returns the nested menu array which will be called before render menu of the nested arrays, or it can be an object, something like: {"nestedMenuLoader": function(){return []};}.
The object option might be better since from here any future new parameters can just be a new key in this object. Your thoughts?
The text was updated successfully, but these errors were encountered:
Probably easier to make context-menu="menuOptions" allow...
$scope.menuOptions=function(name){vardeferred=$q.defer();setTimeout(function(){deferred.resolve([// resolved menu items.]);},1000);returndeferred.promise;}
It already allows a function that returns an array so returning a promise would be easier to understand.
Have a parameter you can specify that will be called to return the array that will be supplied to the nested menu before it is rendered. I'm thinking this can be simple function that returns the nested menu array which will be called before render menu of the nested arrays, or it can be an object, something like: {"nestedMenuLoader": function(){return []};}.
The object option might be better since from here any future new parameters can just be a new key in this object. Your thoughts?
The text was updated successfully, but these errors were encountered: