Equivalent Python Code for small Javascript constructor

I was curious so i tried it - and it worked (not that I fully trust it!)
And I think the traditional js api is the way to go here.

Note you’ll likely hit this issue with the grid component: jQuery conflict with Smart.Grid · Issue #4 · HTMLElements/smart-webcomponents · GitHub

https://anvil.works/build#clone:EGDYNKCYDIKPWAB4=E6DNWZX5MVFXPHHW476H7L4D

If you’re looking for a gird component that does something similar you might want to check out the Tabulator dependency Tabulator - with anvil components

1 Like