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