This commit is contained in:
John Turner 2026-05-06 11:31:33 +02:00 committed by GitHub
commit cb14583890
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -136,12 +136,22 @@ export default class extends Controller {
header: $(window).width() >= 768, //Only enable fixedHeaders on devices with big screen. Fixes scrolling issues on smartphones. header: $(window).width() >= 768, //Only enable fixedHeaders on devices with big screen. Fixes scrolling issues on smartphones.
headerOffset: $("#navbar").outerHeight() headerOffset: $("#navbar").outerHeight()
}, },
buttons: [{ buttons: [
"extend": 'colvis', {
'className': 'mr-2 btn-outline-secondary', "extend": 'colvis',
'columns': ':not(.no-colvis)', 'className': 'mr-2 btn-outline-secondary',
"text": "<i class='fa fa-cog'></i>" 'columns': ':not(.no-colvis)',
}], "text": "<i class='fa fa-cog'></i>"
},
{
text: 'CSV',
action: $.fn.initDataTables.exportBtnAction('csv', settings),
},
{
text: 'Excel',
action: $.fn.initDataTables.exportBtnAction('excel', settings),
}
],
rowCallback: this._rowCallback.bind(this), rowCallback: this._rowCallback.bind(this),