Skip to main content


sets the path to the import module

importModulePath?: string;


var spreadsheet = new dhx.Spreadsheet(document.body, {
importModulePath: "../libs/excel2json/1.0/worker.js"

Related sample: Spreadsheet. Custom Import Export Path


DHTMLX Spreadsheet uses the WebAssembly-based library Excel2json for import of data from Excel.

To import files you need to:

  • install the Excel2json library
  • set the path to the worker.js file via the importModulePath option in one of the two ways:
    • by providing a local path to the file on your computer, like: "../libs/excel2json/1.0/worker.js"
    • by providing a link to the file from CDN: ""

By default the link to CDN is used.

Related articles

Data loading and export