[]
NOTE: This function is OBSOLETE and retained for compatibility. It is no longer needed because wijmo.xlsx module loads jszip module automatically. You should only ensure that jszip module is installed in your application.
Defines a reference to JSZip module that will be used by the Wijmo xlsx export modules.
This method should be used in npm modules based applications to provide wijmo.xlsx module with a reference to the JSZip module retrieved using the ES6 import statement. For example:
import * as JSZip from 'jszip'; import * as wjcXlsx from 'wijmo/wijmo.xlsx'; wjcXlsx.useJSZip(JSZip);
Reference to the JSZip constructor function.
This module has a dependency on the JSZip library, which must be installed separately.
npm install jszip@3 --save
If your application is not based on npm, and you load modules using script elements in html, you can load it from CDN with a markup like this: For JSZip 3npm install jszip@2 --save
For JSZip 2<script src="http://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js" />
<script src="http://cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js" />