]> git.proxmox.com Git - extjs.git/blame - extjs/examples/kitchensink/classic/samples/model/grid/ForumThread.js
add extjs 6.0.1 sources
[extjs.git] / extjs / examples / kitchensink / classic / samples / model / grid / ForumThread.js
CommitLineData
6527f429
DM
1Ext.define('KitchenSink.model.grid.ForumThread', {\r
2 extend: 'KitchenSink.model.Base',\r
3 fields: [\r
4 'title', 'forumtitle', 'forumid', 'username',\r
5 {name: 'replycount', type: 'int'},\r
6 {name: 'lastpost', mapping: 'lastpost', type: 'date', dateFormat: 'timestamp'},\r
7 'lastposter', 'excerpt', 'threadid'\r
8 ],\r
9 idProperty: 'threadid',\r
10 proxy: {\r
11 // load using script tags for cross domain, if the data in on the same domain as\r
12 // this page, an HttpProxy would be better\r
13 type: 'jsonp',\r
14 url: 'http://www.sencha.com/forum/topics-browse-remote.php',\r
15 reader: {\r
16 rootProperty: 'topics',\r
17 totalProperty: 'totalCount'\r
18 },\r
19 // sends single sort as multi parameter\r
20 simpleSortMode: true\r
21 }\r
22});\r