I'm using angularjs datatable and trying to use button plugin in this page https://l-lin.github.io/angular-datatables/#/withButtons
.withButtons([
'columnsToggle',
'colvis',
'copy',
'pdf',
'excel',
{
text: 'Some button',
key: '1',
action: function (e, dt, node, config) {
alert('Button activated');
}
}
]);
I get Unknown button type: 'columnsToggle', and 'colvis' but when I remove 'columnsToggle', and 'colvis' from code it run without any problems but other button not display except custom button
{
text: 'Some button',
key: '1',
action: function (e, dt, node, config) {
alert('Button activated');
}
}
copy,pdf, excel don't appears,Can anyone help me to fix the problem please?