# Spreadsheet A plugin for [Reveal.js](https://github.com/hakimel/reveal.js) allowing to add spreadsheets using [RuleJS](https://github.com/handsontable/RuleJS). [Check out the live demo](http://courses.telematique.eu/reveal.js-plugins/spreadsheet-demo.html) ## Installation Copy the files ```ruleJS.all.full.min.js```, ```spreadsheet.js```, and ```spreadsheet.css``` into the plugin folder of your reveal.js presentation, i.e. ```reveal.js-plugins/spreadsheet```. Add the plugins to the dependencies in your presentation, as below. ```html
``` ```javascript Reveal.initialize({ // ... dependencies: [ // ... { src: 'reveal.js-plugins//spreadsheet/spreadsheet.js' }, // ... ] }); ``` ## Configuration The plugin has several optional parameters that you can set for your presentation by providing a```spreadsheet``` option in the reveal.js initialization options. The default values are given below. ```javascript Reveal.initialize({ // ... spreadsheet: { fontsize: 24, width: 150, delimiter: ",", precision: 4 // the maximum number of digits after the comma }, // ... }); ``` ## Usage A spreadsheet can be included in a slide by adding a ```div``` element with ```class="spreadsheet"```. You can prefill the spreadsheet by providing CSV data inside the ```div``` element. ```html