Spreadsheets
Introduction
For all those situations where a table is just not enough, users can embed simple but very powerful spreadsheets in their documents with this plugin.
Installation
npm install commajs-spreadsheet
In commajs-core options add:
import CommaSpreadsheet from "commajs-spreadsheet";
options = {
...,
plugins: [
...,
{ pClass: CommaSpreadsheet }
]
}
Styling
Spreadsheets are styled using the css file that you can find in the commajs-spreadsheet package.
Usage
To add a spreadsheet:
commajsInstance.InsertPluginAtSection(CommaSpreadsheet.GetName(), {cols: 30, rows: 10});