pd-table-row-span

Automatic rowspan based on the content of the table

Usage no npm install needed!

<script type="module">
  import pdTableRowSpan from 'https://cdn.skypack.dev/pd-table-row-span';
</script>

README

table-row-span

Automatic rowspan based on the content of the table

demo

open demo.html in browser

rowspan Rules

jquery

 $('#table-merge').PdTableRowSpan()

options

 $('#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

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

License

This plugin is available under the MIT license.