I have a project making extensive use of Custom HTML. Would love to use this old ‘Table Component’ to present tabulated data.
However, when I clone and run the example usage app it is placing all the table data into the first cell/column. See attached image
I cannot see why it is doing this as the code looks to make sense i.e. "<td anvil-slot-repeat='cell'></td>" elements. The component is making use of the HtmlTemplate class. There is limited documentation https://anvil.works/docs/api/anvil#HtmlTemplate I have come across on this class. Therefore, unable to determine if this class still works in the same way as it did back when this component was created.
Has anyone used this component lately, and could shed light on issue arising?
Hi @stucork , thanks for the prompt fix - greatly appreciate your time and effort.
However, I can see the fix has been implemented when I run the clone of ‘Table Component’ or apply it as a dependency in my apps. But, I’m failing to replicate the component build into my app. What exactly have you changed, so that I can apply to my app. See an extract of my app build below : -
Noted. So, are you saying I can only use the Table component as a dependency app and cannot recreate it in my apps?
Because the internal changes are not affecting my version of the Table component albeit the exact same code except for the use of self._data_iter.__next__() as per requirement for Python 3; and addition of self._columns = [] in the __init__()