[Dojo-interest] TreeContextMenu: Assigning to TreeNode instead ofTree

ilia ilia at dojotoolkit.org
Thu Apr 27 07:11:38 MDT 2006


ContextMenu is assigned to whole tree, because assigning separate menu to
every node is too costly in terms of performance.

But it contains the code to manage node-specific things, disabled actions
etc. See sources.

 

  _____  

From: dojo-interest-bounces at dojotoolkit.org
[mailto:dojo-interest-bounces at dojotoolkit.org] On Behalf Of Shulman, Steve
Sent: Wednesday, April 26, 2006 10:06 PM
To: dojo-interest at dojotoolkit.org
Subject: [Dojo-interest] TreeContextMenu: Assigning to TreeNode instead
ofTree

 

I'm trying to figure out a way to allow TreeContextMenu items to be assigned
to a TreeNode instead of the entire Tree. In many cases, various node types
will require unique context menu options. The ideal implementation would
assign the tree-wide context menu that would be used if a node-specific
context menu is not specified. I'm relatively new to the Dojo environment,
and was interesting in getting any recommendations on how to implement this
type of change?

 

Thanks in advance,

Steve

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20060427/c9cb7634/attachment.html


More information about the Dojo-interest mailing list