XSpreadsheet 一款基于typescript开发的,简单的,易用的在线表格插件
XSpreadsheet
xspreadsheet 是一款基于javascript开发的,简单的,易用的在线表格插件<br/> git: https://github.com/myliang/xspreadsheet
demo: https://myliang.github.io/xspreadsheet/
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
1 回复
标题应该是 【基于 “typescript” 的xxx】吧