Using a web component would be a good way to add in all the table goodies we'd need for apps as well as content writers, like:
- DataTables or something similar for sorting and paging tables
- TablesawJS for responsive tables
- Auto-correcting poorly constructed tables, and providing the necessary IDs and headers attributes for accessibility
Could be as simple as
<rh-table responsive sorting paging ...>
<table>
...
</table>
</rh-table>
Keeping the <table> element inside the lightDOM / slot, we'd ensure that this is enhanced progressively.
Using a web component would be a good way to add in all the table goodies we'd need for apps as well as content writers, like:
Could be as simple as
Keeping the
<table>element inside the lightDOM / slot, we'd ensure that this is enhanced progressively.