PDA

View Full Version : [FIXED] ViewController help



fabioebner
29 May 2014, 10:46 AM
i create one view:


Ext.define('portalservicos.view.indicadores.ConsultaIndicadores',{ extend: 'Ext.container.Container',


xtype: 'consultaIndicadores',


controller: 'consultaIndicadoresController',


layout: {
type: 'vbox',
align: 'stretch'
},
autoScroll: true,


items: [{
xtype: 'panel',
title: 'Consulta de Indicadores',
layout:{
type: 'vbox',
align: 'center'
},
items:[{
xtype: 'button',
text: 'aa'
},{
xtype: 'container',
layout: {
type: 'vbox',
align: 'stretch'
},
width: 600,
items:[{
xtype: 'form',
items:[{
xtype: 'radiogroup',
items:[{
xtype: 'radiofield',
boxLabel: 'Busca Imóveis',
name: 'tipoConsulta'
},
{
xtype: 'radiofield',
boxLabel: 'Busca Notas',
name: 'tipoConsulta'
},
{
xtype: 'radiofield',
boxLabel: 'Busca Firmas',
name: 'tipoConsulta',
handler: 'onClickButton'
}]
}]

}]
}]
}]
});





and my viewController


Ext.define('portalservicos.view.indicadores.ConsultaIndicadoresController', { extend: 'Ext.app.ViewController',


requires: [
'Ext.MessageBox'
],


alias: 'controller.consultaIndicadoresController',


onClickButton: function () {
Ext.log('aaaaa');
}
});

why my handler don't find my function?? if i put the handler in my butoon, works fine.. but in my radiogroup dont.

anyone can help me?

mitchellsimoens
30 May 2014, 6:36 AM
This looks like a bug, it should work no problems.