I’ll often use self.item
in forms whose purpose is to be instantiated as the content of an alert. That way I can use content = ContentForm(item=whatever)
and then Anvil takes care of putting whatever
in as ContentForm’s self.item
.
Lazy of me, but it saves me a line of code in ContentForm’s __init__
, and then I don’t have to remember what to use in data bindings.