I want to know ajax query string
I want to know ajax query string
$("#data-table-0").DataTable({
ajax: {
url: "{% url 'apis:user_list' %}",
dataSrc: 'data'
},
columns: [
{data: "id"},
{data: "username"},
{data: "email"},
{data: "is_superuser"},
{data: "is_staff"},
{data: "group_permission_id"},
{data: "verified_email"},
{data: "date_joined"},
{data: "last_login"},
],
scrollX: true,
destroy: true,
processing: true,
serverSide: true,
})
if use the ajax for server side, DataTable send the query string to server.
so, i want to know where document of query string.
query string ex)
draw: 1
columns[0][data]: id
columns[0][name]:
columns[0][searchable]: true
columns[0][orderable]: true
columns[0][search][value]:
columns[0][search][regex]: false
columns[1][data]: username
columns[1][name]:
columns[1][searchable]: true
columns[1][orderable]: true
columns[1][search][value]:
columns[1][search][regex]: false
order[0][column]: 0
order[0][dir]: asc
start: 0
length: 10
search[value]:
search[regex]: false
_: 1557646672532
Answers
solved:)
https://datatables.net/manual/server-side