This is the npm package for SocialCalc, an in-browser spreadsheet editor with support for real-time collaboration. This version is based on the version used in EtherCalc.
See it in action at ethercalc.net!
- jQuery (only on the client-side)
You can require('socialcalc')
or include node_modules/socialcalc/dist/SocialCalc.js
on your web page using a script tag.
In order to create an editor instance use:
var socialCalcControl = new SocialCalc.SpreadsheetControl()
socialCalcControl.InitializeSpreadsheetControl(el /*, height, width, spacebelow*/)
This package also works in node.js. You don't need to callc InitializeSpreadsheetControl
here, because that is just initializing the rendering.
SocialCalc uses npm and gulp, to get the dependencies, use:
npm install
You can now compile the project using
npm run build
- socialcalcspreadsheetcontrol.js
- socialcalctableeditor.js
- formatnumber2.js
- formula1.js
- socialcalc-3.js
- socialcalcconstants.js
- socialcalcpopup.js
- images/sc_*.png