1
J'ai construit une vue et je veux faire une manipulation des éléments, après la vue a été peint. J'essaie d'utiliser l'événement «peint» sans succès.Sencha Touch 2 événement peint pas de tir
Des idées pourquoi?
Ext.define('TestApp.view.phone.RegisterViewPhone', {
extend: 'Ext.Panel',
xtype: 'RegisterViewPhone',
config: {
items: [
{
xtype: 'Header'
},{
xtype: 'panel',
itemId: 'thePanel',
html: 'THIS WILL HOLD THE VIEWS CONTENT'
},{
xtype: 'Footer'
}
],
listeners: [
{
delegate: '#thePanel',
event: 'painted',
fn: 'onPainted'
}
]
},
onPainted: function() {
alert('hey!');
}
});