Skip to content

Commit f11b477

Browse files
committed
Fix: Default for footer in exports is true as of Buttons 3.0. I'd missed some.
https://datatables.net/forums/discussion/78352
1 parent 78f9e15 commit f11b477

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/button/pdf.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
Indicate if the table header should be included in the exported data or not.
4141
</option>
4242

43-
<option type="boolean" name="footer" default="false">
44-
Indicate if the table footer should be included in the exported data or not.
43+
<option type="boolean" name="footer" default="true">
44+
Indicate if the table footer should be included in the exported data or not. Please note that the default for this parameter was updated in Buttons 3.0.1 to be `true`. In earlier versions it was `false`.
4545
</option>
4646

4747
<option type="string|function" name="filename" default="*">

docs/button/print.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
Indicate if the table header should be included in the print view or not.
5050
</option>
5151

52-
<option type="boolean" name="footer" default="false">
53-
Indicate if the table footer should be included in the print view or not.
52+
<option type="boolean" name="footer" default="true">
53+
Indicate if the table footer should be included in the print view or not. Please note that the default for this parameter was updated in Buttons 3.0.1 to be `true`. In earlier versions it was `false`.
5454
</option>
5555

5656
<option type="boolean" name="autoPrint" default="true">

js/buttons.html5.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ DataTable.ext.buttons.copyHtml5 = {
992992

993993
header: true,
994994

995-
footer: false,
995+
footer: true,
996996

997997
title: '*',
998998

@@ -1071,7 +1071,7 @@ DataTable.ext.buttons.csvHtml5 = {
10711071

10721072
header: true,
10731073

1074-
footer: false
1074+
footer: true
10751075
};
10761076

10771077
//

js/buttons.print.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ DataTable.ext.buttons.print = {
228228

229229
header: true,
230230

231-
footer: false,
231+
footer: true,
232232

233233
autoPrint: true,
234234

0 commit comments

Comments
 (0)