-
7 Dec 2012 12:39 AM #1
Problems with Container Event
Problems with Container Event
I want to add a tap event to a Container.
The following solution works outside sencha architect:
http://stackoverflow.com/questions/9...orking-in-viewHTML Code:listeners: { tap: { element: 'element', delegate: '#test', fn: function(e) { alert('Element with id "test" was tapped!'); } } }
But I couldn't figure out how this works with Sencha Architect. If I open up the architect after adding the code it will erase my changes. Why?
How to add this in Sencha Architect?
-
7 Dec 2012 7:54 AM #2
set up a controller function for that panel and add the below
Code:container.element.on('tap', function() { }, container);


Reply With Quote