1. #1
    Sencha Premium Member
    Join Date
    Nov 2007
    Location
    Moore, Oklahoma
    Posts
    503
    Vote Rating
    18
    Mthor will become famous soon enough Mthor will become famous soon enough

      0  

    Default xTemplate <div> tap in architect

    I need to call a function when a <div> is clicked in xtemplate. Not haveing any success doing this in architect. Any ideas?

    so if a <div id="myDiv">this div gets tapped</div> how to read that event and call a function in architect

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    139
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default

    Is this a component? a container? a panel?

    Grab a reference to the element of the component and set a click event handler via the Ext.Element API.

    Can there be multiple ones of these divs? of these components? You may be better off using a css class and then using the delegate configuration.
    Aaron Conran
    @aconran

  3. #3
    Sencha Premium Member
    Join Date
    Nov 2007
    Location
    Moore, Oklahoma
    Posts
    503
    Vote Rating
    18
    Mthor will become famous soon enough Mthor will become famous soon enough

      0  

    Default

    I had a tpl in a container. I wanted to tap a div element, I achieved this through the element, thanks for your help

Thread Participants: 1