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

    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 - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    81
    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,546
    Vote Rating
    64
    Animal is a jewel in the rough Animal is a jewel in the rough Animal is a jewel in the rough

      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