Not possible to add class, attr, ... to button "columnsToggle"?

Not possible to add class, attr, ... to button "columnsToggle"?

adrian2k7adrian2k7 Posts: 2Questions: 1Answers: 0

Hello,

Is this wanted behaviour or just a bug, that it isn't possible to extend "columnsToggle" with custom class or attr?

I'm not sure, if I'm reading the documentation correclty. but generally it should work like this?

buttons: [{
      extend: 'columnsToggle',
      className: 'my-custom-class',
      attr:  {
                myData: "example"
      }
 }]

I.e. it is working, when extending "colvisRestore".

Thank you,

Adrian

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.