a javascript spreadsheet for web
npm install typescript --save-dev
npm install awesome-typescript-loader --save-dev
npm install xspreadsheet --save-dev
import xspreadsheet from 'xspreadsheet'
const x = xspreadsheet(document.getElementById('#id'))
x.change = (data) => {
console.log('data:', data)
}
// edit
// data is param in the change method
xspreadsheet(document.getElementById('#id'), {d: data})
{
"compilerOptions": {
....
"types": ["xspreadsheet"],
....
}
}
Modern browsers and Internet Explorer 9+(no test).
MIT