JSFiddle - React, Tailwind, and code Playground
by Izhaki
JavaScript
var store = Ext.create('Ext.data.Store', {
model: 'myModel',
pageSize: 10,
proxy: {
type: 'ajax',
url: "/echo/json",
// actionMethods: {create: "POST", read: "POST", update: "POST", destroy: "POST"},
// headers: { 'Content-Type': 'application/json' },
limitParam: false,
startParam: false,
pageParam: false,
extraParams: {
rows: 10,
role: "Admin",
index: 1,
question: 'why'
},
reader: {
type: 'json',
root: 'results.results',
totalProperty: 'numFound',
model: 'myModel'
}
}
});
store.loadPage(1);