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.
headerOffset: $("#navbar").outerHeight()
},
buttons: [{
"extend": 'colvis',
'className': 'mr-2 btn-outline-secondary',
'columns': ':not(.no-colvis)',
"text": "<i class='fa fa-cog'></i>"
}],
buttons: [
{
"extend": 'colvis',
'className': 'mr-2 btn-outline-secondary',
'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),