salix/client/helpers/crudModelHelper.js

25 lines
450 B
JavaScript
Raw Normal View History

module.exports.crudModel = {
data: [],
filter: {},
order: {},
insert: () => {
return new Promise(accept => {
accept();
});
},
remove: () => {
return new Promise(accept => {
accept();
});
},
save: () => {
return new Promise(accept => {
accept();
});
},
2018-10-31 13:56:54 +00:00
refresh: () => {},
addFilter: () => {},
applyFilter: () => {}
};