Skip to content

Commit 1448ef4

Browse files
committed
Example: Update for the fact that the default for footer is now to include it`
https://datatables.net/forums/discussion/78352
1 parent e613ade commit 1448ef4

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

examples/html5/footer.xml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ $('#example').DataTable({
99
layout: {
1010
topStart: {
1111
buttons: [
12-
{ extend: 'copyHtml5', footer: true },
13-
{ extend: 'excelHtml5', footer: true },
14-
{ extend: 'csvHtml5', footer: true },
15-
{ extend: 'pdfHtml5', footer: true }
12+
{ extend: 'copyHtml5', footer: false },
13+
{ extend: 'excelHtml5', footer: false },
14+
{ extend: 'csvHtml5', footer: false },
15+
{ extend: 'pdfHtml5', footer: false }
1616
]
1717
}
1818
}
@@ -28,10 +28,10 @@ new DataTable('#example', {
2828
layout: {
2929
topStart: {
3030
buttons: [
31-
{ extend: 'copyHtml5', footer: true },
32-
{ extend: 'excelHtml5', footer: true },
33-
{ extend: 'csvHtml5', footer: true },
34-
{ extend: 'pdfHtml5', footer: true }
31+
{ extend: 'copyHtml5', footer: false },
32+
{ extend: 'excelHtml5', footer: false },
33+
{ extend: 'csvHtml5', footer: false },
34+
{ extend: 'pdfHtml5', footer: false }
3535
]
3636
}
3737
}
@@ -40,11 +40,13 @@ new DataTable('#example', {
4040
]]>
4141
</js-vanilla>
4242

43-
<title lib="Buttons">Include footer in export</title>
43+
<title lib="Buttons">Exclude footer in export</title>
4444

4545
<info><![CDATA[
4646
47-
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.
47+
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).
48+
49+
This behaviour can be altered using the `footer` option that is present for each of the export buttons, as shown in this example.
4850
4951
]]></info>
5052

0 commit comments

Comments
 (0)