I am using angularjs datatable and trying to use the button plugin on this page https://l-lin.imtqy.com/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 an Unknown button type: 'columnsToggle' and 'colvis' but when I remove the “columnsToggle” and “colvis” from the code, it starts without any problems, but the other button is not displayed except for the custom button
{ text: 'Some button', key: '1', action: function (e, dt, node, config) { alert('Button activated'); } }
copy, pdf, excel does not appear, can someone help me solve the problem, please?
source share