Go to file
Eugene 9e25b2869c Updated readme 2023-07-25 15:38:47 +03:00
dist dist update 2023-07-25 15:27:58 +03:00
public Init commit 2023-07-19 17:34:15 +03:00
src dist update 2023-07-25 15:27:58 +03:00
.gitignore Builded first version of package 2023-07-24 19:12:21 +03:00
LICENCE Added 'destroy' method 2023-07-25 13:20:25 +03:00
README.md Updated readme 2023-07-25 15:38:47 +03:00
index.html Added 'destroy' method 2023-07-25 13:20:25 +03:00
package.json Updated readme 2023-07-25 15:38:47 +03:00
pnpm-lock.yaml Added keywords 2023-07-25 11:39:58 +03:00
tsconfig.json Builded first version of package 2023-07-24 19:12:21 +03:00
vite.config.ts Added keywords 2023-07-25 11:39:58 +03:00

README.md

Modern Spreadsheet

  • High performance spreadsheet based on CanvasAPI.
  • TypeScript supported

Basic usage

import Spreadsheet from  'modern_spreadsheet'
import 'modern_spreadsheet/style.css'  // <= this is required

const  target = document.getElementById('spreadsheet')
const  sheet = new  Spreadsheet(target)
//...

Save and load data

function  saveData() {
	const  serialized = sheet.serializeData()
	localStorage.setItem('sheet_data', JSON.stringify(serialized))
}

function  loadData() {
	const  data = localStorage.getItem('sheet_data')
	const  json = JSON.parse(data)
	if(!json) return;
	sheet.loadData(json)
}

Roadmap

  • Custom event functions (ex.: onSelectionChange, onCellEdit...). Full list of supported events will available on this page
  • Rows number and columns heading render
  • Rows and columns resizing
  • Toolbar
  • Context menu
  • Formulas support
  • Selected cell depends cells highlight
  • Async formulas support
  • Mutlisheets (?)