Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.39 KB

File metadata and controls

45 lines (31 loc) · 1.39 KB
sidebar_label exportModulePath
title exportModulePath config
description You can learn about the exportModulePath 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.

exportModulePath

Description

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

Usage

exportModulePath?: string;

Example

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

Details

:::note DHTMLX Spreadsheet uses the WebAssembly-based library JSON2Excel for export of data into Excel. :::

To export files you need to:

  • install the JSON2excel library
  • set the path to the worker.js file via the exportModulePath option in one of the two ways:
    • by providing a local path to the file on your computer, like: "../libs/json2excel/1.0/worker.js"
    • by providing a link to the file from CDN: "https://cdn.dhtmlx.com/libs/json2excel/1.0/worker.js"

By default the link to CDN is used.

Related articles: Data loading and export

Related sample: Spreadsheet. Custom Import Export Path