Package Exports
- get-html-rows-cells
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (get-html-rows-cells) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
get-html-rows-cells
Simple nodejs function for generating divs with cells as HTML with data-cell-id and data-row-id set.
Install
npm install --save get-html-rows-cells
Code
See index.js
Usage
var getRowsCells = require('get-html-rows-cells');
console.log(getRowsCells(1, 2); // One row and two cells
// => <div class="row" data-id="0"><span class="cell" data-row-id="0" data-cell-id="0"></span><span class="cell" data-row-id="0" data-cell-id="1"></span></div>See test.js
Usage example:
MIT © Dennis Iversen