CSV Importer

The CSV importer is the easier way for your users to import a general CSV file in with some unknown column order into your javascript grid or spreadsheet.

Author

Jspreadsheet Pro Team.

License

Available on the premium or enterprise plan.

Installation

Please choose one of the following options

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

<script src="https://jspreadsheet.com/v8/plugins/render.js"></script>

<div id='spreadsheet'></div>

<script>
// License for Formula Plugin
jspreadsheet.license = 'your-license';

// Add-on for Jspreasheet
jspreadsheet.setExtensions({ render });

// Create the spreadsheets
jspreadsheet(document.getElementById('spreadsheet'), {
    worksheets: [
        { minDimensions: [10, 10] },
        { minDimensions: [10, 10] },
    ],
});
</script>
</html>
// Jspreadsheet Pro
import jspreadsheet from 'jspreadsheet';

// Importer JSS Render
import render from '@jspreadsheet/csv';

// Add a valid license
jspreadsheet.setLicense('your-license');

// Start the JSS plugin
jspreadsheet.setExtensions({ render });

// Create a spreadsheet
jspreadsheet(document.getElementById('spreadsheet'), {
    worksheets: [
        { minDimensions: [10, 10] },
        { minDimensions: [10, 10] },
    ]
});

// Call this method to create a XLSX file
let download = function() {
    // The method should receive the spreadsheet DOM element
    jspreadsheet.render(document.getElementById('spreadsheet'));
}


Example

Click in the download button below to export the following JSS spreadsheet to XLSX.