generated from smedev/Template-for-SMEServer-Contribs-Package
* Fri Apr 26 2024 Brian Read <brianr@koozali.org> 11.0.0-4.sme
- Move link creation to createlinks, add REquires smeserver-manager [SME: 12539]
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
.dataTables_wrapper {
|
||||
width: min-content;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.ui-button {
|
||||
position: relative;
|
||||
font-size: 0;
|
||||
width: 23px;
|
||||
height: 23px;
|
||||
}
|
||||
|
||||
.dataTables_wrapper .dataTables_filter {
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.dataTables_wrapper .dataTables_length {
|
||||
float: left;
|
||||
margin-right:2%;
|
||||
}
|
||||
|
||||
.dataTables_wrapper .dataTables_paginate {
|
||||
float: right;
|
||||
}
|
||||
.dataTables_wrapper .dataTables_info {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* If the buttons extension is enabled */
|
||||
.dataTables_wrapper .dt-buttons {
|
||||
float: left;
|
||||
margin-right: 10px; /* Or any desired space between buttons and search */
|
||||
}
|
||||
|
@@ -0,0 +1,27 @@
|
||||
//Additional JS for dataTable usesetup in SMEServer
|
||||
// Options for the initial dataTable call found here: https://datatables.net/reference/option/
|
||||
$(window).on('pageshow', function(){
|
||||
//alert('page show');
|
||||
$('.TableSort').DataTable({
|
||||
"stateSave": true,
|
||||
"retrieve": true,
|
||||
"responsive":true,
|
||||
"language": {
|
||||
"emptyTable": "No record found.",
|
||||
"processing":'" style="color: rgba(42, 43, 43, 1)">Loading... ',
|
||||
"error": function (xhr, error, thrown) {alert("Error occurred while loading data. Please try again.");}
|
||||
},
|
||||
"dom": '<"top"lBf<"clear">>rt<"bottom"ip<"clear">>',
|
||||
"buttons": ['copy', 'csv', 'excel', 'pdf', 'print'],
|
||||
"headerCallback": function( thead, data, start, end, display ) {
|
||||
setup_table_row_buttons();
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
function setup_table_row_buttons(){
|
||||
$(".sme-modify-button").button({"icon": "ui-icon-pencil"});
|
||||
$(".sme-remove-button").button({"icon": "ui-icon-trash"});
|
||||
$(".sme-password-button").button({"icon": "ui-icon-refresh"});
|
||||
$(".sme-lock-button").button({"icon": "ui-icon-key"});
|
||||
}
|
Reference in New Issue
Block a user