@jspreadsheet/xls

1.6.1 • Public • Published

Jspreadsheet Plugins

About Jspreadsheet

Jspreadsheet, a lightweight Vanilla JavaScript plugin, can help you create exceptional web-based interactive tables and spreadsheets. Compatible with most widely-used spreadsheet softwares, it offers users an unrivalled Excel-like user experience. It also works well with prominent modern frameworks and flexibly utilizes a large collection of events, extensions and configurations to meet different application requirements. Impress your clients with a better user experience and a great dynamic interactive data management tool. The jspreadsheet extensions can be used to enhance the native capabilities.

For more information:
Jspreadsheet Pro distribution.

plugins/xls

A plugin to create a XLS file from a Jspreadsheet worksheet.



JSpreadsheet to XLS

This plugin helps the export a XLS from a jspreadsheet worksheet.

Author

This is an official Jspreadsheet Plugin.

License

MIT distribution

Example using the browser

A following working example can be found here

<html>
<script src="https://jspreadsheet.com/v7/jspreadsheet.js"></script>
<link rel="stylesheet" href="https://jspreadsheet.com/v7/jspreadsheet.css" type="text/css" />
<script src="https://jsuites.net/v4/jsuites.js"></script>
<link rel="stylesheet" href="https://jsuites.net/v4/jsuites.css" type="text/css" />

<script src="https://jspreadsheet.com/v7/plugins/download.js"></script>

<div id="spreadsheet"></div>

<input type='button' value='Download' onclick="jspreadsheet.download(document.getElementById('spreadsheet'));">

<script>
jexcel(document.getElementById('spreadsheet'), {
    minDimension: [10,10]
});
</script>
</html>

Example using NPM

% npm install @jspreadsheet/xls
import download from '@jspreadsheet/xls';

download(document.getElementById('spreadsheet'), {
    filename: 'file.xsl',
    author: 'Lennon',
});

Package Sidebar

Install

npm i @jspreadsheet/xls

Weekly Downloads

143

Version

1.6.1

License

none

Unpacked Size

23.8 kB

Total Files

3

Last publish

Collaborators