|
Lines 687-692
function _dt_buttons(params){
Link Here
|
| 687 |
} |
687 |
} |
| 688 |
} |
688 |
} |
| 689 |
|
689 |
|
|
|
690 |
const export_format_print = { |
| 691 |
body: function (data, row, column, node) { |
| 692 |
const newnode = node.cloneNode(true); |
| 693 |
const no_export_nodes = newnode.querySelectorAll(".no-export"); |
| 694 |
no_export_nodes.forEach(child => { |
| 695 |
child.parentNode.removeChild(child); |
| 696 |
}); |
| 697 |
//Note: innerHTML is the same thing as the data variable, |
| 698 |
//minus the ".no-export" nodes that we've removed |
| 699 |
//Note: See dataTables.buttons.js for original function usage |
| 700 |
const str = DataTable.Buttons.stripData(newnode.innerHTML, { |
| 701 |
decodeEntities: false, |
| 702 |
stripHtml: true, |
| 703 |
stripNewlines: true, |
| 704 |
trim: true, |
| 705 |
}); |
| 706 |
return str; |
| 707 |
}, |
| 708 |
}; |
| 709 |
|
| 690 |
var export_format = { |
710 |
var export_format = { |
| 691 |
body: function ( data, row, column, node ) { |
711 |
body: function ( data, row, column, node ) { |
| 692 |
var newnode = $(node); |
712 |
var newnode = $(node); |
|
Lines 726-732
function _dt_buttons(params){
Link Here
|
| 726 |
extend: 'print', |
746 |
extend: 'print', |
| 727 |
exportOptions: { |
747 |
exportOptions: { |
| 728 |
columns: exportColumns, |
748 |
columns: exportColumns, |
| 729 |
format: export_format |
749 |
format: export_format_print, |
| 730 |
}, |
750 |
}, |
| 731 |
} |
751 |
} |
| 732 |
]; |
752 |
]; |
| 733 |
- |
|
|