I'm using this plugin in my TypeScript webpart for SharePoint Online
I've included jquery
and table2excel
in the script and everything not related to table2excel
is working fine.
import * as $ from 'jquery';
require('table2excel');
I have installed 'table2excel' by using npm i table2excel
Then when I try to use table2excel
it returns the following error:
```
$(...).table2excel is not a function ```
(<any>$("#ViewTablehidden")).table2excel({
exclude: ".noExl",
name: "title",
filename: "title",
fileext: ".xls",
exclude_img: true,
exclude_links: true,
exclude_inputs: true
});
Why can't I get it to work?