You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/html5/footer.xml
+12-10Lines changed: 12 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,10 @@ $('#example').DataTable({
9
9
layout: {
10
10
topStart: {
11
11
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 }
16
16
]
17
17
}
18
18
}
@@ -28,10 +28,10 @@ new DataTable('#example', {
28
28
layout: {
29
29
topStart: {
30
30
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 }
35
35
]
36
36
}
37
37
}
@@ -40,11 +40,13 @@ new DataTable('#example', {
40
40
]]>
41
41
</js-vanilla>
42
42
43
-
<titlelib="Buttons">Include footer in export</title>
43
+
<titlelib="Buttons">Exclude footer in export</title>
44
44
45
45
<info><![CDATA[
46
46
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.
0 commit comments