|
Lines 796-801
function _dt_buttons(params) {
Link Here
|
| 796 |
}, |
796 |
}, |
| 797 |
}; |
797 |
}; |
| 798 |
|
798 |
|
|
|
799 |
const export_format_print = { |
| 800 |
body: function (data, row, column, node) { |
| 801 |
const newnode = node.cloneNode(true); |
| 802 |
const no_export_nodes = newnode.querySelectorAll(".no-export"); |
| 803 |
no_export_nodes.forEach(child => { |
| 804 |
child.parentNode.removeChild(child); |
| 805 |
}); |
| 806 |
//Note: innerHTML is the same thing as the data variable, |
| 807 |
//minus the ".no-export" nodes that we've removed |
| 808 |
//Note: See dataTables.buttons.js for original function usage |
| 809 |
const str = DataTable.Buttons.stripData(newnode.innerHTML, { |
| 810 |
decodeEntities: false, |
| 811 |
stripHtml: true, |
| 812 |
stripNewlines: true, |
| 813 |
trim: true, |
| 814 |
}); |
| 815 |
return str; |
| 816 |
}, |
| 817 |
}; |
| 818 |
|
| 799 |
var export_format = { |
819 |
var export_format = { |
| 800 |
body: function (data, row, column, node) { |
820 |
body: function (data, row, column, node) { |
| 801 |
var newnode = $(node); |
821 |
var newnode = $(node); |
|
Lines 835-841
function _dt_buttons(params) {
Link Here
|
| 835 |
extend: "print", |
855 |
extend: "print", |
| 836 |
exportOptions: { |
856 |
exportOptions: { |
| 837 |
columns: exportColumns, |
857 |
columns: exportColumns, |
| 838 |
format: export_format, |
858 |
format: export_format_print, |
| 839 |
}, |
859 |
}, |
| 840 |
}, |
860 |
}, |
| 841 |
]; |
861 |
]; |
| 842 |
- |
|
|