salix/front/core/mocks/crud-model.js

25 lines
440 B
JavaScript
Raw Normal View History

module.exports = {
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: () => {}
};