Results 1 to 3 of 3

Thread: onclick in template data

  1. #1
    Ext User
    Join Date
    May 2009
    Posts
    11
    Vote Rating
    0
      0  

    Default onclick in template data

    Hi I have created a template and i want to have some clickable text on it

    var tpl = <a id="attach" >testfunction</a>

    I dont know how to call a internal function by clicking test function .

    The template loads dynamically...so i dont have the dataa before hand

  2. #2
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    87
      0  

    Default

    after applying the template, setup click handlers on the dom elements. simple.

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,607
    Vote Rating
    59
      0  

    Default

    Use a click handler on the outer, containing Element, and use the delegate option to target only those elements you want "clickable"

Posting Permissions

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