I created my own HTML component in extJS by specifying the value of the html panel. I cannot bind event handlers to an element (or they somehow do not fire). However, I can do other things on the component, for example, hide, add, etc.
Ext.select('#toFieldDiv').on('click',function() {
alert("something");
});
Ext.select('#toFieldDiv').hide('slow');
Any idea?
Here is my component definition:
{
xtype: 'panel',
x: 70,
y: 0,
html: "<div id=\"toFieldDiv\" class=\"to-field\"> </div>"
}
I even tried the same with jQuery. Hide again works, but not a click.
source
share