How can i change syle on the colvis button
How can i change syle on the colvis button
good day, did somebody change style on colvis button?
i am trying, when few columns hidden, change class on restore columns button,
and then, when all columns will be showing, change class on "Restore column button" to other;
- var nButtons = [];
2.//button for hide columns
buttons.push({ extend: 'colvisGroup', text: 'Meeting', show: [ 1, 2 ], hide: [ 3,4] });
3.//button for show all columns
var buttonRestoreColumns = {extend: 'colvisGroup', text: 'Restore Columns', show: ':hidden'});
nButtons.push({extend: 'colvisGroup', text: 'Restore Columns', show: ':hidden'});
//onChange
$(this.tName).on( 'column-visibility.dt', function ( e, settings, column, state ) {
buttonRestoreColumns.addClass('orange');//no working
AJS.$(buttonRestoreColumns).addClass('orange');//no working
buttonRestoreColumns.addClass('orange').draw();//no working
} );