Readme update
This commit is contained in:
parent
55e4eb0f70
commit
c34d913619
19
README.md
19
README.md
|
|
@ -1,10 +1,8 @@
|
|||
# Modern Spreadsheet
|
||||
|
||||
- High performance spreadsheet based on CanvasAPI.
|
||||
- TypeScript supported
|
||||
|
||||
## Basic usage
|
||||
|
||||
```ts
|
||||
import Spreadsheet from "modern_spreadsheet";
|
||||
import "modern_spreadsheet/style.css"; // <= this is required
|
||||
|
|
@ -15,25 +13,23 @@ const sheet = new Spreadsheet(target);
|
|||
```
|
||||
|
||||
## Save and load data
|
||||
|
||||
```ts
|
||||
function saveData() {
|
||||
const serialized = sheet.serializeData();
|
||||
localStorage.setItem("sheet_data", JSON.stringify(serialized));
|
||||
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);
|
||||
const data = localStorage.getItem("sheet_data");
|
||||
const json = JSON.parse(data);
|
||||
if (!json) return;
|
||||
sheet.loadData(json);
|
||||
}
|
||||
```
|
||||
|
||||
## Roadmap
|
||||
|
||||
- ~~Rows number and columns heading render~~
|
||||
- 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
|
||||
|
|
@ -41,4 +37,3 @@ function loadData() {
|
|||
- Selected cell depends cells highlight
|
||||
- Async formulas support
|
||||
- Mutlisheets (?)
|
||||
-
|
||||
|
|
|
|||
Loading…
Reference in New Issue