@grg79 – perhaps an omission?
What you could do is insert a hint for "alternating rows" or "alternating columns" and their values to the table style by insertLabel("KeyString", "ValueString"). Extract and apply the values every time the table style is applied with a few extra lines of code.
The problem here, did not test my suggestion: there are roughly 40 basic options with "countless" parameters one could set for strokes and fills; options like "preserve local formatting" etc.pp.
Perhaps it's better to use pre-formatted tables in e.g. library files instead of table styles and move the contents (maybe the texts) cell by cell to duplicates of that prepared tables. Before that you could read out some parameters like row length and cell length and adapt the placed duplicates out of the library file.
Simply I need to read the attribute alternating rows or alternating columns of tableStyle if exists....
But i don't found the attribute... it don't exists?
Which property are you interested in?
table.startColumnFillCount ==> which columns are taken
table.startRowFillColor ==> which swatch is applied to chosen rows
In the interface of ID I can define in the tableStyle the alternating rows attributes.
But I can't read this attributes in the object tableStyle whit JS
You can read tableStyle.startRowFillColor with JS