Created
May 30, 2023 11:38
-
-
Save Amir-A-M/bb8883b61d99a07434727265c560dd76 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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