开发者

extjs 4 tree store RESTful

开发者 https://www.devze.com 2023-04-10 13:57 出处:网络
i m working with Extjs 4 Tree with Rails 3 as backend & was wondering is there any REST support as for TreeStore as we have it for开发者_JS百科 data store? I tried a lot of googling but could nt f

i m working with Extjs 4 Tree with Rails 3 as backend & was wondering is there any REST support as for TreeStore as we have it for开发者_JS百科 data store? I tried a lot of googling but could nt find any full fledged tutorial.. I want to dynamically add nodes to tree & tree store should be synchronized so that next time tree loads newly created node also exists..


Yes. This is handled by your chosen proxy. Simply set the Ext.data.TreeStore's proxy to type: rest.

Please see the following for reference:

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.TreeStore-cfg-proxy

and

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.proxy.Rest

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号