Skip to content

Instantly share code, notes, and snippets.

@Amir-A-M
Created May 30, 2023 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Amir-A-M/bb8883b61d99a07434727265c560dd76 to your computer and use it in GitHub Desktop.
Save Amir-A-M/bb8883b61d99a07434727265c560dd76 to your computer and use it in GitHub Desktop.
var options = {
pageLength: 4, // ◀◀
paging: true,
processing: true,
serverSide: true, // ◀◀
ajax: {
url: '/fetch_file_rows/' + id,
},
columns: [
{ data: 'fields.event_code' },
{ data: 'fields.row_index' },
{ data: 'fields.event' },
{ data: 'fields.status' },
{
render: function (data, type, full, meta) {
return `
<button class="btn btn-sm btn-primary">
<a style="color:#fff;" href="/access_import_wizard/${full.fields.access_file}/${full.fields.row_index}" target="_blank">ورود به ویزارد</a>
</button>
`;
}
}
],
scrollX: true,
direction: "rtl",
lengthChange: !1,
dom: "Bfrtip",
keys: !0,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment