Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rmraya/tscachedtable
Cached HTML virtual table written in TypeScript
https://github.com/rmraya/tscachedtable
Last synced: about 8 hours ago
JSON representation
Cached HTML virtual table written in TypeScript
- Host: GitHub
- URL: https://github.com/rmraya/tscachedtable
- Owner: rmraya
- License: epl-1.0
- Created: 2023-06-01T12:18:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-13T11:36:26.000Z (10 months ago)
- Last Synced: 2024-01-13T21:36:17.480Z (10 months ago)
- Language: TypeScript
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TSCachedTable
A virtual table manager written in TypeScript.
## Constructor
``` TypeScript
let virtualTable = new VirtualTable(parent, model, options?);
```Where:
Parameters | Type | Description
:---------:|:----:|------------
`parent` | `HTMLElement` | HTML element that contains the table. The `parent` element must have explicit '`height` attribute value.
`model` | `TableModel` |Instance of `TableModel` interface that provides table data.
`options` | `any` | Optional parameters for the table.## Options
Field | Description
:-----:|----------
`renderCache` | Number of rows to render. Default: `50`
`bufferSize` | Number of rows to cache at top and bottom of table. Default: `10`
`headerBackground` | Background color for the table header. Default: `lightgray`