SQUARSPACEWEBSITES.ORG
Extension PRO
https://www.squarewebsites.org/squarespacewebsites-tools-extension-pro/
To use all table features, please copy/add this code to your Injections tab :
<link rel="stylesheet" href="//www.squarewebsites.org/assets/custom-tables/style.css"> <script src="//www.squarewebsites.org/assets/custom-tables/custom-table.js"></script>
Tables are initializing on Y.config.win.Squarespace.onInitialize event, so it should work with Ajax Templates also. For additional JS plugins and features you may subscribe to "table-init" custom event - it fires on table is built.
document.querySelector('.my-table').addEventListener('table-init', function () { ----Your code here--- }, false);
Attention: Please divide Tables Blocks with another blocks, like Spacer or Line or some another except Markdown and Table. The reason is Squarespace split nearby Markdown blocks into one and we want to keep this for compatibility.
City | Population, million | Density, men/km2 | Country |
---|---|---|---|
New York | 8 537 673 | 4 042 000 | USA |
Los Angeles | 10 831 100 | 3 198 000 | USA |
Winnipeg | 800,000 | 400,000 | Canada |