I want to achieve the following stuff : I have a component in my app, and I want his rendering to be performed inside an IFrame.
this.button = Ext.create({
xtype: 'button',
text: 'Button',
handler: function() {
console.log('click', this, this.getEl());
},
renderTo: this.getIframeBody()
});
This code is a test in order to build a more complex app but this simple test fail. The handler is never associated, it seems that the event is never watched.
Any idea on why this doesn't work?
I also tried to directly attach the event to the el:
this.button.getEl().on('click', function() {console.log('click here!')})
But it doesn't work.
Any idea on how to make possible to manage a Component in a document context and is rendering (Element) in another document context (the iframe's one) and especially how not to break events between Component and Element?
I suspect that this is because ExtJs change how the event are manage globally to support Touch Events but, after digging into the code, I was not able to understand where the problem is...