Results 1 to 2 of 2

Thread: How can I add an icon to a tree node which has an onclick

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Location
    Germany
    Posts
    70
    Vote Rating
    0
      0  

    Default How can I add an icon to a tree node which has an onclick

    I would like to add an icon to the right of a tree node which opens an ext.window when I click on it.

    Has anyone seen an example of something similar or could guide me in the right direction?

    yours,

    Rob

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,385
    Vote Rating
    1540
      0  

    Default

    The elements aren't easily changed but you can enter an <img> tag into the text of the node and it should display the image. You would just have to capture the click of that <img> tag using mon and delegate.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •