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. 

 
CityPopulation, millionDensity, men/km2Country
New York8 537 6734 042 000USA
Los Angeles10 831 1003 198 000USA
Winnipeg800,000400,000Canada