Wiki
Clone wikigrails-datatables / ajaxParams
ajaxParams
Values
Name | Type | Default |
---|---|---|
ajaxParams | Map | None |
Description
ajaxParams
is a Map that allows you to add custom parameters to the requests that your table makes to the server in order to get the table data. This option only applies when using serverSide or serverDataLoad, and is only useful when you are using your own controller to supply the data.
Note that the name
key is reserved for the name of the table, so if your ajaxParams map has a name key, it will be overridden.
Example
<dt:datatable name="MyTable" serverSide="true" controller="myController" dataAction="myDataAction" ajaxParams="${[myKey: myValue]}"> <dt:column name="myFirstColumn"/> <dt:column name="mySecondColumn"/> </dt:datatable>
See Also
Back to Options.
Updated