Update Data-Tables.md

pull/7673/head
Halil İbrahim Kalkan 5 years ago
parent eb29c8b869
commit 6078eb083a

@ -131,12 +131,13 @@ var responseCallback = function(result) {
ajax: abp.libs.datatables.createAjax(acme.bookStore.books.book.getList, inputAction, responseCallback) ajax: abp.libs.datatables.createAjax(acme.bookStore.books.book.getList, inputAction, responseCallback)
```` ````
If you don't need access or modify the `requestData` or the `dataTableSettings`, you can specify a **simple object** as the second parameter. If you don't need access or modify the `requestData` or the `dataTableSettings`, you can specify a simple object as the second parameter.
**Note:** This option should not be used if you need to customise any of the following options: `maxResultCount`, `skipCount`, `sorting`, `filter` - these options will be overwritten by the `createAjax` function so you should specify an `inputAction` **function** instead. ````js
ajax: abp.libs.datatables.createAjax(
````javascript acme.bookStore.books.book.getList,
ajax: abp.libs.datatables.createAjax(acme.bookStore.books.book.getList, { id: $('#Id').val(), name: $('#Name').val() }) { id: $('#Id').val(), name: $('#Name').val() }
)
```` ````
### Row Actions ### Row Actions

Loading…
Cancel
Save