Skip to content

Improvements to table binding with existing content

Compare
Choose a tag to compare
@g105b g105b released this 16 Nov 13:04
· 59 commits to master since this release
e4e2208

When a <table> element already exists on the page, it would be useful to utilise the contents of the table, retaining parts of it as a template when binding.

This minor release introduces improvements to help this case:

  • Existing <th> elements that don't match any bound data are preserved.
  • Bound data that doesn't match any existing headers is discarded.
  • Importantly: existing <tr> elements can be marked with data-template to add pre-templated row shapes for advanced designs.