Thank you for reporting this bug. We will make it our priority to review this report.
Does a Ext.data.reader.Json use an idProperty? If not, bug in docs
Does a Ext.data.reader.Json use an idProperty? If not, bug in docs
If you check out the JsonStore docs: http://ift.tt/1k2M84l
There is this example below which suggests a json reader can use an 'idProperty' config option. I know Model's use that, but I can't find anything about a reader using it. Does anything other than a Model use the idProperty?Also I noticed the 'root' config option for the reader is used but the docs for the reader say to use 'rootProperty', which I assume is the recommended config property to use?
Code:
var store = new Ext.data.JsonStore({
// store configs
storeId: 'myStore',
proxy: {
type: 'ajax',
url: 'get-images.php',
reader: {
type: 'json',
root: 'images',
idProperty: 'name' <---------
}
},
//alternatively, a Ext.data.Model name can be given (see Ext.data.Store for an example)
fields: ['name', 'url', {name:'size', type: 'float'}, {name:'lastmod', type:'date'}]
});
Thanks!
mercredi 28 mai 2014
Does a Ext.data.reader.Json use an idProperty? If not, bug in docs
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire