0.0.48 • Published 15 days ago

sheet-happens v0.0.48

Weekly downloads
45
License
MIT
Repository
github
Last release
15 days ago

sheet-happens

React Spreadsheet

NPM JavaScript Style Guide

Sheeeeeit

About

Canvas-based spreadsheet component for React. Super fast and responsive regardless of the dataset size because it draws only the data user currently sees.

sheet-happens

Install

npm install --save sheet-happens

Usage

To use our Sheet in your project, just import the component and its style and render it:

import React, { Component } from 'react'

import Sheet from 'sheet-happens'
import 'sheet-happens/dist/index.css'

class Example extends Component {
  render() {
    return <Sheet />
  }
}

Of course, you can also display some data in it:

const [data, setData] = useState([[1,2,3], [10,20,30]]);
    
const displayData = (x, y) => {
    return data?.[y]?.[x]?.toFixed?.(2);
};

return (
    <div className="sheet-box">
        <Sheet
            sourceData={data}
            displayData={displayData}
        />
    </div>
);

Go to our example page to learn more about features it has and checkout documentation for detailed list of props you can send to this component.

Along with descriptions, page also contains multiple Sheet components you can use to try out is it a good match for your needs. Edit some values, paste some data, drag columns and rows for resize, and so on.

License

MIT © Luka-M

0.0.48

15 days ago

0.0.46

22 days ago

0.0.47

22 days ago

0.0.45

2 months ago

0.0.44

2 months ago

0.0.43

3 months ago

0.0.42

3 months ago

0.0.41

3 months ago

0.0.40

4 months ago

0.0.38

4 months ago

0.0.39

4 months ago

0.0.37

5 months ago

0.0.36

7 months ago

0.0.32

12 months ago

0.0.33

10 months ago

0.0.34

9 months ago

0.0.35

8 months ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.24

12 months ago

0.0.25

12 months ago

0.0.30

12 months ago

0.0.31

12 months ago

0.0.26

12 months ago

0.0.27

12 months ago

0.0.28

12 months ago

0.0.29

12 months ago

0.0.20

1 year ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.13

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.10

2 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.1

3 years ago