|
Lines 702-707
function _dt_buttons(params){
Link Here
|
| 702 |
} |
702 |
} |
| 703 |
} |
703 |
} |
| 704 |
|
704 |
|
|
|
705 |
const export_format_print = { |
| 706 |
body: function (data, row, column, node) { |
| 707 |
const newnode = node.cloneNode(true); |
| 708 |
const no_export_nodes = newnode.querySelectorAll(".no-export"); |
| 709 |
no_export_nodes.forEach(child => { |
| 710 |
child.parentNode.removeChild(child); |
| 711 |
}); |
| 712 |
//Note: innerHTML is the same thing as the data variable, |
| 713 |
//minus the ".no-export" nodes that we've removed |
| 714 |
//Note: See dataTables.buttons.js for original function usage |
| 715 |
const str = DataTable.Buttons.stripData(newnode.innerHTML, { |
| 716 |
decodeEntities: false, |
| 717 |
stripHtml: true, |
| 718 |
stripNewlines: true, |
| 719 |
trim: true, |
| 720 |
}); |
| 721 |
return str; |
| 722 |
}, |
| 723 |
}; |
| 724 |
|
| 705 |
var export_format = { |
725 |
var export_format = { |
| 706 |
body: function ( data, row, column, node ) { |
726 |
body: function ( data, row, column, node ) { |
| 707 |
var newnode = $(node); |
727 |
var newnode = $(node); |
|
Lines 741-747
function _dt_buttons(params){
Link Here
|
| 741 |
extend: 'print', |
761 |
extend: 'print', |
| 742 |
exportOptions: { |
762 |
exportOptions: { |
| 743 |
columns: exportColumns, |
763 |
columns: exportColumns, |
| 744 |
format: export_format |
764 |
format: export_format_print, |
| 745 |
}, |
765 |
}, |
| 746 |
} |
766 |
} |
| 747 |
]; |
767 |
]; |
| 748 |
- |
|
|