-
18 Nov 2012 4:39 PM #1
xTemplate <div> tap in architect
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
-
26 Nov 2012 7:43 AM #2
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
Sencha Architect Development Team
-
29 Nov 2012 5:06 AM #3
I had a tpl in a container. I wanted to tap a div element, I achieved this through the element, thanks for your help


Reply With Quote