Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
piglovesyou committed Jan 3, 2024
1 parent 3d41b23 commit cfa3e6e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ Example usage in a browser:

Example usage in Node.js:

```shell
npm install merge-cells
```

```ts
import { calcRowspanFromObjectArray } from 'merge-cells'

Expand Down Expand Up @@ -50,12 +54,12 @@ Example:
```ts
const tableEl = document.getElementById('table') as HTMLTableElement
applyRowspanToTable(tableEl)
mergeCells(tableEl)
```

### `calcRowspanFromObjectArray`

Calculate the `rowspan` of each cell in JavaScript object rows. Useful for flexible usage such as in in server-side
Calculate the `rowspan` of each cell in JavaScript object rows. Useful for flexible usage such as in server-side
rendering. Signature:

```ts
Expand Down

0 comments on commit cfa3e6e

Please sign in to comment.