]>
git.proxmox.com Git - extjs.git/blob - extjs/examples/kitchensink/classic/samples/model/grid/ForumThread.js
1 Ext
.define('KitchenSink.model.grid.ForumThread', {
2 extend
: 'KitchenSink.model.Base',
4 'title', 'forumtitle', 'forumid', 'username',
5 {name
: 'replycount', type
: 'int'},
6 {name
: 'lastpost', mapping
: 'lastpost', type
: 'date', dateFormat
: 'timestamp'},
7 'lastposter', 'excerpt', 'threadid'
9 idProperty
: 'threadid',
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
14 url
: 'http://www.sencha.com/forum/topics-browse-remote.php',
16 rootProperty
: 'topics',
17 totalProperty
: 'totalCount'
19 // sends single sort as multi parameter