Suốt mấy không thể tìm ra lỗi vì sao arrayStore không load được, thì ra là thiếu expandData: true
The config option expandData for ArrayStore is missing in API docs:
http://dev.sencha.com/deploy/dev/doc...ata.ArrayStore
Proposed documentation:
"When set to true and loadData is called the supplied data will be expanded from ['a', 'b', 'c'] to [['a'], ['b'], ['c']]"
or something...
Ví dụ:
The config option expandData for ArrayStore is missing in API docs:
http://dev.sencha.com/deploy/dev/doc...ata.ArrayStore
Proposed documentation:
"When set to true and loadData is called the supplied data will be expanded from ['a', 'b', 'c'] to [['a'], ['b'], ['c']]"
or something...
Ví dụ:
var store = Ext.create('Ext.data.ArrayStore', { model: 'JobA', data: data, expandData: true // this is tied to ArrayStore#loadData only });
Nhận xét
Đăng nhận xét