Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.4 KB

File metadata and controls

45 lines (31 loc) · 1.4 KB
sidebar_label importModulePath
title importModulePath config
description You can learn about the importModulePath config in the documentation of the DHTMLX JavaScript Spreadsheet library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Spreadsheet.

importModulePath

Description

@short: Optional. Sets the path to the import module

Usage

importModulePath?: string;

Example

const spreadsheet = new dhx.Spreadsheet("spreadsheet", {
    importModulePath: "../libs/excel2json/1.0/worker.js",
    // other config parameters
});

Details

:::note 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 default the link to CDN is used.

Related articles: Data loading and export

Related sample: Spreadsheet. Custom Import Export Path