This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

(dojo tree) how can I bind an event with the text?

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone tried dojo toolkit for tree component? I have a small doubt in that.



Here, value of the title attributes are displayed in the tree as text i.e. aJavaVariable is 'dad' and bJavaVariable is 'son' then son will be under dad...

Now I want to associate an onClick event on the text (when I click on say 'son' an alert should pop up), how to do that?

How can I bind (associate) an event with the text?

I tried putting text inside div and then putting div against title through javascript variable but that doesn't work.

Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic