Lines 27-41
function KohaTable(id_selector, dt_parameters, columns_settings, add_filters) {
Link Here
|
27 |
exportColumns = dt_parameters["exportColumns"]; |
27 |
exportColumns = dt_parameters["exportColumns"]; |
28 |
} |
28 |
} |
29 |
|
29 |
|
30 |
dt_parameters[ "buttons" ] = [ |
30 |
var export_buttons = [ |
31 |
{ |
|
|
32 |
extend: 'colvis', |
33 |
columns: included_ids, |
34 |
text: _("Column visibility"), |
35 |
exportOptions: { |
36 |
columns: exportColumns |
37 |
}, |
38 |
}, |
39 |
{ |
31 |
{ |
40 |
extend: 'excelHtml5', |
32 |
extend: 'excelHtml5', |
41 |
text: _("Excel"), |
33 |
text: _("Excel"), |
Lines 63-69
function KohaTable(id_selector, dt_parameters, columns_settings, add_filters) {
Link Here
|
63 |
exportOptions: { |
55 |
exportOptions: { |
64 |
columns: exportColumns |
56 |
columns: exportColumns |
65 |
}, |
57 |
}, |
|
|
58 |
} |
59 |
]; |
60 |
|
61 |
dt_parameters[ "buttons" ] = [ |
62 |
{ |
63 |
extend: 'colvis', |
64 |
fade: 100, |
65 |
columns: included_ids, |
66 |
text: '<i class="fa fa-lg fa-gear"></i>', |
67 |
exportOptions: { |
68 |
columns: exportColumns |
69 |
}, |
66 |
}, |
70 |
}, |
|
|
71 |
{ |
72 |
extend: 'collection', |
73 |
fade: 100, |
74 |
text: '<i class="fa fa-lg fa-download"></i>', |
75 |
buttons: export_buttons |
76 |
} |
77 |
|
67 |
]; |
78 |
]; |
68 |
|
79 |
|
69 |
var table = $(selector); |
80 |
var table = $(selector); |
70 |
- |
|
|