XSpreadsheet
xspreadsheet 是一款使用typescript開發的,簡單的,易用的線上表格外掛
git: github.com/myliang/xsp…
demo: myliang.github.io/xspreadshee…
Install
npm install typescript --save-dev
npm install awesome-typescript-loader --save-dev
npm install xspreadsheet --save-dev
npm install @types/xspreadsheet --save-dev
複製程式碼
Quick Start
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})
複製程式碼
in tsconfig.json
{
"compilerOptions": {
....
"types": ["xspreadsheet"],
....
}
}
複製程式碼
Browser Support
Modern browsers and Internet Explorer 9+(no test).
LICENSE
MIT