Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Object literal may only specify known properties, and 'buttons' does not exist in type 'Settings

I am using Angular 8 and following example from here but

enter image description here

and the exception is

enter image description here

Please help me solve this.

like image 223
TAHA SULTAN TEMURI Avatar asked Mar 03 '23 07:03

TAHA SULTAN TEMURI


1 Answers

Just make sure the dtOptions is declared as any.

You can find this comment on: https://l-lin.github.io/angular-datatables/#/extensions/buttons

// Must be declared as "any", not as "DataTables.Settings"
dtOptions: any = {};
like image 101
netanel elipaz Avatar answered Apr 26 '23 21:04

netanel elipaz