Print Button not working after adding custom classname
Print Button not working after adding custom classname

I use the following code to add buttons to print and it succeed.
buttons: [ 'print', ]
However, the code failed when I add my own classname like these:
buttons:
[{text:'print' , className: 'dt-button buttons-copy buttons-html5 btn btn-Primary'} ]
How can I add custom className and keep it orginal property ?
Thank you.
This discussion has been closed.
Answers
I this you want to use the object
extend
nottext
, like this:Kevin