Skip to content

Instantly share code, notes, and snippets.

View markschl's full-sized avatar

Markus Schlegel markschl

  • Swiss Federal Research Institute WSL
View GitHub Profile
@markschl
markschl / lazyLoader.js
Last active April 23, 2017 13:02
Attempt to implement a Handsontable (www.handsontable.com) plugin allowing deferred loading of data (see also https://github.com/warpech/jquery-handsontable/issues/607). For an example see: http://jsfiddle.net/7Z3bD/54/
/**
* This Handsontable plugin implements deferred data loading, useful for
* large tables ("infinite scrolling").
*
*
* Example usage
* -------------
* In this example data is fetched from a Django + Tastypie Api
*
* var hot = new Handsontable(document.getElementById('table'), {