Maj DataTable export
This commit is contained in:
@@ -402,7 +402,7 @@ function appliquerDataTable() {
|
||||
$('.tabliste').each(function() {
|
||||
const $table = $(this);
|
||||
|
||||
// Détecter les colonnes avec data-hidden="true"
|
||||
// Détecter les colonnes cachées
|
||||
const hiddenTargets = [];
|
||||
$table.find('thead th').each(function(index) {
|
||||
if ($(this).data('hidden')) {
|
||||
@@ -420,6 +420,14 @@ function appliquerDataTable() {
|
||||
language: translations[codeLangue] || translations.fr_FR,
|
||||
columnDefs: [
|
||||
{ targets: hiddenTargets, visible: false, searchable: true }
|
||||
],
|
||||
dom: 'Bfrtip', // B = Buttons, f = filter, r = processing, t = table, i = info, p = pagination
|
||||
buttons: [
|
||||
{ extend: 'copy', text: 'Copier' },
|
||||
{ extend: 'csv', text: 'CSV' },
|
||||
{ extend: 'excel', text: 'Excel' },
|
||||
{ extend: 'pdf', text: 'PDF' },
|
||||
{ extend: 'print', text: 'Imprimer' }
|
||||
]
|
||||
};
|
||||
|
||||
@@ -431,7 +439,6 @@ function appliquerDataTable() {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function raffraichier_gabarit()
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user