parent
4fc0ca17b6
commit
e8b3872f68
|
|
@ -0,0 +1,14 @@
|
|||
# SpreadsheetSpreadsheet
|
||||
|
||||
- <span>High performance spreadsheet based on CanvasAPI.</span>
|
||||
- <span>TypeScript supported</span>
|
||||
|
||||
<div>
|
||||
<span>Basic usage</span>
|
||||
|
||||
```js
|
||||
import { Spreadsheet } from 'spreadsheet
|
||||
const target = document.querySelector('#spreadsheet_container')
|
||||
const spreadsheetInstance = new Spreadsheet(target)
|
||||
```
|
||||
</div>
|
||||
|
|
@ -45,14 +45,14 @@ export class Spreadsheet {
|
|||
public cache: Cache
|
||||
|
||||
constructor(target: string | HTMLElement, props?: SpreadsheetConstructorProperties) {
|
||||
const config = createSampleConfig(2000, 600)
|
||||
const config = createSampleConfig(500, 500)
|
||||
if (props?.view) {
|
||||
config.view = props.view
|
||||
}
|
||||
|
||||
this.config = new Config(config)
|
||||
this.sheet = new Sheet(this)
|
||||
const data = createSampleData(2000, 600)
|
||||
const data = createSampleData(500, 500)
|
||||
this.table = new Table(this)
|
||||
this.scroller = new Scroller(this)
|
||||
this.toolbar = new Toolbar(this)
|
||||
|
|
|
|||
Loading…
Reference in New Issue