问题
Sencha architect, I have a form and I want to config its reader like this,
Ext.create('Ext.data.JsonReader', {
root : "rows",
model : 'city'
})
In Sencha architect, it will be add a pair of single quote mark. So how to config reader of the form?
回答1:
Ron,
The Form Panel has a reader config that is set to be an object. Edit that object and add the code bellow to it:
{
type : 'json',
root : 'rows', // if ExtJS 5, this should be rootProperty: 'rows'
model : 'city'
}
Shoud look something like this after you do it.
来源:https://stackoverflow.com/questions/30868513/sencha-architect-i-have-a-form-and-how-to-config-its-reader