1. #1
    Ext User
    Join Date
    May 2009
    Posts
    11
    Vote Rating
    0
    bugsbunny is on a distinguished road

      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
    84
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      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,570
    Vote Rating
    53
    Animal will become famous soon enough Animal will become famous soon enough

      0  

    Default

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

Thread Participants: 2