Skip to content

Commit

Permalink
Example: Update for the fact that the default for footer is now to …
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanJard committed Mar 1, 2024
1 parent e613ade commit 1448ef4
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions examples/html5/footer.xml
Expand Up @@ -9,10 +9,10 @@ $('#example').DataTable({
layout: {
topStart: {
buttons: [
{ extend: 'copyHtml5', footer: true },
{ extend: 'excelHtml5', footer: true },
{ extend: 'csvHtml5', footer: true },
{ extend: 'pdfHtml5', footer: true }
{ extend: 'copyHtml5', footer: false },
{ extend: 'excelHtml5', footer: false },
{ extend: 'csvHtml5', footer: false },
{ extend: 'pdfHtml5', footer: false }
]
}
}
Expand All @@ -28,10 +28,10 @@ new DataTable('#example', {
layout: {
topStart: {
buttons: [
{ extend: 'copyHtml5', footer: true },
{ extend: 'excelHtml5', footer: true },
{ extend: 'csvHtml5', footer: true },
{ extend: 'pdfHtml5', footer: true }
{ extend: 'copyHtml5', footer: false },
{ extend: 'excelHtml5', footer: false },
{ extend: 'csvHtml5', footer: false },
{ extend: 'pdfHtml5', footer: false }
]
}
}
Expand All @@ -40,11 +40,13 @@ new DataTable('#example', {
]]>
</js-vanilla>

<title lib="Buttons">Include footer in export</title>
<title lib="Buttons">Exclude footer in export</title>

<info><![CDATA[
By default the data export buttons do not include the table footer (if present) in the output. That behaviour can be altered using the `footer` option that is present for each of the export buttons, as shown in this example.
As of Buttons 3, by default the data export buttons will include the table footer (if present) in the output (prior to Buttons 3, the default was for the footer not to be included).
This behaviour can be altered using the `footer` option that is present for each of the export buttons, as shown in this example.
]]></info>

Expand Down

0 comments on commit 1448ef4

Please sign in to comment.