Sencha建筑师,我有一个表格和如何配置它的“读者”? [英] Sencha architect, I have a form and how to config its `reader`?
本文介绍了Sencha建筑师,我有一个表格和如何配置它的“读者”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Sencha建筑师,我有一个表单,我想配置它的读者
这样,
Ext.create('Ext.data.JsonReader',{
root:rows,
model:'city'
})
在Sencha建筑师中,它将添加一对单引号。那么如何配置表单
的 reader
?
解决方案
Ron,
Form Panel有一个设置为对象的阅读器配置。编辑该对象并添加以下代码:
{
$ p $
type:'json',
root:'rows',//如果ExtJS 5,这应该是rootProperty:'rows'
model:'city'
}
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 theform
?解决方案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.
这篇关于Sencha建筑师,我有一个表格和如何配置它的“读者”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文