Temporal Nacho

This commit is contained in:
imnavajas
2023-09-04 13:16:25 +02:00
parent 289d89851b
commit 5b4126f460
3 changed files with 39 additions and 6 deletions

View File

@ -232,7 +232,7 @@
searching: false,
paging: true,
info: false,
"dom": 'lfBrtip',
"dom": '<"mt-4"><"float-end"B><"float-start"l><t><"mt-4 mb-3"p>',
"buttons": [
'copy', 'csv', 'excel', 'print', {
extend: 'pdfHtml5',
@ -426,7 +426,8 @@ const lastColNr2 = $('#tableOfPrecios').find("tr:first th").length - 1;
searching: false,
paging: true,
info: false,
dom: '<"mt-4"><"float-end"B><"float-start"l><t><"mt-4 mb-3"p>',
//dom: '<"mt-4"><"float-end"B><"float-start"l><t><"mt-4 mb-3"p>',
"dom": 'lfBrtip',
ajax : $.fn.dataTable.pipeline( {
url: '<?= route_to('dataTableOfTarifasEnvioPrecios') ?>',
data: function ( d ) {
@ -472,19 +473,37 @@ const lastColNr2 = $('#tableOfPrecios').find("tr:first th").length - 1;
language: {
url: "//cdn.datatables.net/plug-ins/1.13.4/i18n/<?= config('Basics')->i18n ?>.json"
},
buttons: [ {
/*buttons: [
'copy', 'csv', 'excel', 'print', {
extend: 'pdfHtml5',
orientation: 'landscape',
pageSize: 'A4'
},
],*/
} );
new $.fn.dataTable.Buttons( theTable2, {
name: 'new',
className: 'btn btn-primary float-end me-sm-3 me-1',
extend: "createInline",
editor: editor2,
formOptions: {
submitTrigger: -1,
submitHtml: '<a href="javascript:void(0);"><i class="ti ti-device-floppy"></i></a>'
},
} ],
} );
theTable2.buttons( 'new', null ).container().appendTo(
//theTable2.table().container()
'#panel'
);
// Activate an inline edit on click of a table cell
$('#tableOfPrecios').on( 'click', 'tbody span.edit', function (e) {