Thank you for reporting this bug. We will make it our priority to review this report.
Model Mapping not working
Model Mapping not working
http://ift.tt/1pKQ8Kn
Code:
Ext.define('MyApp.model.Person', {
extend: 'Ext.data.Model',
fields: [
{
name: 'first',
type: 'string',
mapping: 'firstName'
}
]
});
var record = Ext.create('MyApp.model.Person', {firstName: "Jackie"});
if(record.get('first') === '') {
Ext.Msg.alert('Oh No!', 'Who am I?');
}
I'm getting a blank when I execute record.get('first');
Model Mapping not working
Aucun commentaire:
Enregistrer un commentaire