• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic