How to add or remove custom button class
How to add or remove custom button class

I tried:
buttons: [
{
text: 'test',
className: "btn btn-default btn-sm",
action: function ( e, dt, node, config ) {
this.text( 'All' ); \\works!
this.className('btn-success'); \\doesn't work
}
]
this.className('btn-success'); doesn't work - this.className is not a function
This discussion has been closed.
Answers
Hi @otonas ,
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin