Deselect rows in custom print button
Deselect rows in custom print button
bbrindza
Posts: 316Questions: 73Answers: 1
How would I deselect row in a custom print function?
{ extend: 'print',
//deselect rows before executing any script
.....
}
This discussion has been closed.
Answers
You can call
api rows().deselect()
,Colin
I have tried that and received this error in the console log
Uncaught SyntaxError: Unexpected identifier
You will need to create a custom button. Here is an example. The last example in the
buttons.buttons.action
docs show how to execute the desired export inside the action function.Kevin
That error is usually accompanied by a line number.
Otherwise use JSLint to debug your code. It's not a DT error.