This commit is contained in:
John Turner 2026-02-25 19:36:54 +01:00 committed by GitHub
commit b5d84cf109
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -130,12 +130,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', "extend": 'colvis',
'className': 'mr-2 btn-outline-secondary', 'className': 'mr-2 btn-outline-secondary',
'columns': ':not(.no-colvis)', 'columns': ':not(.no-colvis)',
"text": "<i class='fa fa-cog'></i>" "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),