An open API service indexing awesome lists of open source software.

https://github.com/k186/pd-table-row-span

Automatic table rowspan
https://github.com/k186/pd-table-row-span

auto-rowspan automation rowspan table table-row-span

Last synced: 8 months ago
JSON representation

Automatic table rowspan

Awesome Lists containing this project

README

          

![npm](https://img.shields.io/npm/v/pd-table-row-span.svg)

# table-row-span

Automatic rowspan based on the content of the table

### demo
```
open demo.html in browser
```
### rowspan Rules
![](./rdimg/1.png)

![](./rdimg/2.png)

### jquery
```javascript
$('#table-merge').PdTableRowSpan()
```

### options
```javascript
$('#table-merge').PdTableRowSpan({
tags:'td',// compare tags
verticalAlign:'middle', //rowspan style 【middle top bottom】
from:2,// compare start col ,start from 1
to:4// compare end col,start from 1
})
```

### destroy
```javascript
$('#table-merge').PdTableRowSpan('destroy')
```

### License
This plugin is available under [the MIT license](http://mths.be/mit).