Sencha architect, I have a form and how to config its `reader`?

心不动则不痛 提交于 2019-12-13 02:07:20

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!