It can often be useful to send extra information to the server when utilising DataTables' server-side
processing option. This is done by using the ajax
option's data
option which can be used in one of two different ways:
object
- An object of key value pairs which contain the additional data to send to the
server.function
- A function which will manipulate the data object to send to the server, adding
values as required.The example below shows server-side processing being used with an extra parameter being sent to the server
by using the ajax.data
option as a function.
Name | Age | Position | Office | Start date | Salary |
---|---|---|---|---|---|
Name | Age | Position | Office | Start date | Salary |