Add or modify data submitted to the server upon an Ajax request.
Please note - this property requires the Editor extension for DataTables.
The full Editor reference documentation is available to registered users of Editor - the information shown below is a summary only. If you already have an Editor license please sign-in, alternatively an Editor license can be purchased on this site, or sign up for the free trial.
When submitting data to the server (
submit()), Editor will construct a data object internally, with the data required to be sent to the server for the request. This data is in the structure described in the Editor client / server communication documentation.
This method provides the ability to modify that data, including adding additional data if required.
In principle it operates in exactly the same way as jQuery's
$.ajax.data property, in that it can be given as an object with parameters and values to submit, but Editor extends this by also providing it with the ability to be a function, to allow the data to be re-evaluated and modified upon each Ajax request (see above).