|
Lines 790-795
function _dt_buttons(params) {
Link Here
|
| 790 |
}, |
790 |
}, |
| 791 |
}; |
791 |
}; |
| 792 |
|
792 |
|
|
|
793 |
const export_format_print = { |
| 794 |
body: function (data, row, column, node) { |
| 795 |
const newnode = node.cloneNode(true); |
| 796 |
const no_export_nodes = newnode.querySelectorAll(".no-export"); |
| 797 |
no_export_nodes.forEach(child => { |
| 798 |
child.parentNode.removeChild(child); |
| 799 |
}); |
| 800 |
//Note: innerHTML is the same thing as the data variable, |
| 801 |
//minus the ".no-export" nodes that we've removed |
| 802 |
//Note: See dataTables.buttons.js for original function usage |
| 803 |
const str = DataTable.Buttons.stripData(newnode.innerHTML, { |
| 804 |
decodeEntities: false, |
| 805 |
stripHtml: true, |
| 806 |
stripNewlines: true, |
| 807 |
trim: true, |
| 808 |
}); |
| 809 |
return str; |
| 810 |
}, |
| 811 |
}; |
| 812 |
|
| 793 |
var export_format = { |
813 |
var export_format = { |
| 794 |
body: function (data, row, column, node) { |
814 |
body: function (data, row, column, node) { |
| 795 |
var newnode = $(node); |
815 |
var newnode = $(node); |
|
Lines 829-835
function _dt_buttons(params) {
Link Here
|
| 829 |
extend: "print", |
849 |
extend: "print", |
| 830 |
exportOptions: { |
850 |
exportOptions: { |
| 831 |
columns: exportColumns, |
851 |
columns: exportColumns, |
| 832 |
format: export_format, |
852 |
format: export_format_print, |
| 833 |
}, |
853 |
}, |
| 834 |
}, |
854 |
}, |
| 835 |
]; |
855 |
]; |
| 836 |
- |
|
|