Check for empty table
This plugin is absolutely great, thank you for sharing it!
One suggestion I have is to add a way to check if the table is actually used. Right now the default state of the columns and rows are such that empty data is saved with the entry even if nothing is entered so there is no good way (that I can tell) to check for the field in a template conditional.
Even if you delete the columns and rows the next time the publish form is loaded it defaults back to one empty row for each and would be saved again that way.
Again, this is a great plugin! Perhaps I'm just missing something obvious being fairly new to Craft/Twig.
Aha, well I had not thought to check that, which is a bit of a big oversight!
Thanks for updating me - I will try and take a look soon, but if you can and fancy it feel free to submit a PR :)
I got around it for now with this (super ugly) template check to see if the first row is empty {% if entry.demographics.rows[0][0] is defined and entry.demographics.rows[0][0]|length %}.
If I dig deeper I'll definitely submit a PR. Thank you!
Has this enhancement ever been worked on?
I now have the same issue and using the above workaround...