Button is depressed as active
Button is depressed as active
Sample: http://live.datatables.net/lidequra/9/edit
I have a button: "Show All" which displays all columns (half are hidden on loading)
This uses:
buttons [{
extend: 'colvisGroup',
text: 'Show all',
show: ':hidden'
}]
I then have another button to "Reset Cols" which resets column visibility to initial state (hiding half the rows again)
This uses:
buttons [{
extend: 'columnVisibility',
text: 'Reset Cols',
visibility: false,
columns: '.extended-cols'
}]
This works as expected BUT... When I click "Show All" - the "Reset Cols" button then changes it state to active and appears depressed?
How can I stop that?
This question has an accepted answers - jump to answer
Answers
Hi @sjw01 ,
Take a look at this modified example here - this is now behaving. The
columnsVisibility
wasn't the way to go there, since the show is the opposite of the hide.Hope that helps,
Cheers,
Colin