tilesjs-gridparser
v1.1.8
Published
A package to parse specific Json into template object for tilesjs.
Readme
tilesjs-gridparser
Installation
$ npm install tilesjs-gridparser --saveSetup
import gridparser from 'tilesjs-gridparser'
//create Grid -> smart Autoparsing inside method
var grid = gridparser.createGridFromJSON(document.getElementById('grid'), json1);
//update Grid
gridparser.updateTilesGridByJSON(grid, json2);Methods
// parse JSON and get object containing tilesjs gridtemplates for every breakpoint and further information
parseJSON(json);
// get ready to use tilesjs grid by JSON with implemented resize handler
var grid = createGridFromJSON(el, json);
//update existing tilesjs grid by JSON
updateTilesGridByJSON(grid, json);
//check if module is imported correctly
testModule();