• Stars
    star
    321
  • Rank 130,752 (Top 3 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 6 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

此项目已经迁移到了 x-spreadsheet https://github.com/myliang/x-spreadsheet

XSpreadsheet

npm package NPM downloads

a javascript spreadsheet for web

Install

npm install typescript --save-dev
npm install awesome-typescript-loader --save-dev
npm install 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