[Dojo-interest] actionsDisabled how to pass an array.
Jon Sykes
jon.sykes at media-hive.com
Tue Apr 11 13:27:40 MDT 2006
How do I pass multiple disabled actions into a context menu from a
tree node.
I have dug around and it seems to all happen here…
133 actionIsDisabled: function(action) {
134 var _this = this;
135 return dojo.lang.inArray(_this.actionsDisabled, action)
136 },
in Tree.js
But I can't see how you pass more than one value through. I tried
the following…
<div dojotype="TreeNode" title='Test Node>'
actionsDisabled="actionA, actionB"></div>
<div dojotype="TreeNode" title='Test Node>'
actionsDisabled="{actionA, actionB}"></div>
<div dojotype="TreeNode" title='Test Node>'
actionsDisabled="[actionA, actionB]"></div>
<div dojotype="TreeNode" title='Test Node>'
actionsDisabled="actionA" actionsDisabled="actionB"></div>
But to no avail.
Thanks in advance.
Jon
More information about the Dojo-interest
mailing list