GigaTables / reactables

GigaTables is a ReactJS plug-in to help web-developers process table-data in applications and CMS, CRM, ERP or similar systems.
MIT License
144 stars 30 forks source link

REST environment #79

Closed Markohui closed 7 years ago

Markohui commented 7 years ago

Can I specify different URLs for the create, edit and remove actions like in datatables Editor? ajax: { create: { type: 'POST', url: '../php/rest/create.php' }, edit: { type: 'PUT', url: '../php/rest/edit.php?id=id' }, remove: { type: 'DELETE', url: '../php/rest/remove.php?id=id' } }

arthurkushman commented 7 years ago

Hi, at this moment it can't be done, but this is a great idea to implement such functionality. It will definitely help distribute back-end end-points, dependencies etc.

arthurkushman commented 7 years ago

Here is a patch - https://github.com/GigaTables/reactables/tree/2.2.1 U can update via npm.