source upload

This commit is contained in:
Razor12911
2022-01-17 22:16:47 +02:00
parent 12936d065b
commit 098e8c48de
1778 changed files with 1206749 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
Ext.define('ExtMVC.store.Contacts', {
extend : 'Ext.data.Store',
requires : ['ExtMVC.model.Contact'],
constructor : function (cfg) {
var me = this;
cfg = cfg || {};
me.callParent([Ext.apply({
autoLoad : true,
storeId : 'contactsStore',
model : 'ExtMVC.model.Contact',
pageSize : 10,
totalproperty : 'records',
remoteSort : true,
remoteFilter : false,
proxy : {
type : 'rest',
simpleSortMode : true,
directionParam : "dir",
sortParam : "sort",
noCache : false,
actionMethods : {
create : 'POST',
read : 'GET',
update : 'PUT',
destroy : 'DELETE'
},
api : {
create : 'http://localhost:8080/root/SampleRecord',
read : 'http://localhost:8080/root/SampleRecord/?SELECT=*',
update : 'http://localhost:8080/root/SampleRecord/',
destroy : 'http://localhost:8080/root/SampleRecord/'
},
reader : {
type : 'json',
root : 'values'
},
writer : {
type : 'json',
encode : false
},
}
}, cfg)]);
}
});