You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, this library is binding according to the simple name of binded member, what is a string programmer may typo. I highly recommend you refer to DBFlow's approach, generates the associated classes for each model, contains special properties for binded members, and binding according to the special properties.
E.g.
The model:
class SimpleModel : ViewModel() {
@delegate:Property
var name by Delegates.property<String>()
}
The associated class:
class SimpleModel_KB {
val name: BindingProperty<String> = ...
}
Using in UI:
textView {
bind { text(SimpleModel_KB.name) }
}
The text was updated successfully, but these errors were encountered:
Currently, this library is binding according to the simple name of binded member, what is a string programmer may typo. I highly recommend you refer to DBFlow's approach, generates the associated classes for each model, contains special properties for binded members, and binding according to the special properties.
E.g.
The model:
The associated class:
Using in UI:
The text was updated successfully, but these errors were encountered: