2.0.0 • Published 7 years ago

get-html-rows-cells v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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

2.0.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago