Feature request acknowledged! However… There is actually a way to make anything clickable in Anvil: put it inside a Link. Links are containers that have a click
event (set their text
property to empty string).
This follows the pattern from HTML of putting things inside <a>
tags. So, try putting your Form contents inside a Link and using its click
event.
Data Grid rows can be made clickable by unchecking auto_display_data
to False
, dropping a Link in, then dropping a Data Row Panel inside that. You need to set a Data Binding from self.item
to the item
of the Data Row Panel.
Here’s one I’ve set up to display an alert when a row is clicked:
https://anvil.works/build#clone:AFE65JHFO5GNQXCU=TGEOQZHXVZIW2LBBB6RIZ37H