Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`