Custom Toolbar button with hyperlink as action
Custom Toolbar button with hyperlink as action
iecwebmast
Posts: 66Questions: 9Answers: 1
Hello,
I need to add a custom toolbar button with a download zip file link. How can I define the action to be a hyperlink?
$('#myTable').DataTable( {
ajax: '/api/data'
buttons: [
{
text: 'ZIP all',
titleAttr: 'Download zip of ALL files',
action: ???
}
}
]
} );
This discussion has been closed.
Answers
I've found this solution:
Unfortunately, it I am not able to open in a new window.
onclick (window.open='http://
does not work...What would be the correct syntax?
This syntax worked, without the onclick
window.open('http://datatables.net','','width=800,height=800');