-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binding.twoWay instead of subModelSelectedItem #395
Comments
Why?
What you are trying to do is not possible. For each element in a For this reason, the |
The doc states "Only use this if you are unable to use some kind of SelectedValue or SelectedIndex property with a normal twoway binding.", which I understood as there is a simpler/better way through From your reply, I am assuming that's not bad to use this binding kind and I am trying to do a pointless refactoring. Out of curiosity, how am I supposed to correctly use the |
Ah, yes. I understand now. The documentation can be made clearer here. Thanks for the ticket. It is not possible to use a It is possible to bind to I think it is ok to use a |
As usual thanks for the clear explanations @TysonMN! |
@TysonMN I am trying to find a way to improve the doc comment and in the process I am actually wondering if I got things right. When do you recommend to use |
A You are reminding me that I want to extract "sequencing" as a composable effect. I will spend time thinking about that. I have been making lots of progress lately, so hopefully I have an update on this soon. |
I am going to create a |
I just added a @Evangelink, is there a selection scenario that is still confusing to you? If so, then I will resolve that by adding another selection example. If not, then I will close this issue. |
Hi there,
I am trying to replace the various use of
Binding.subModelSelectedItem
in my code withBinding.twoWay
but I am failing to understand how to do so properly.Solution 1:
SelectedItem
bySelectedValue
in the binding of my view.Binding.subModelSelectedItem
withBinding.twoWay
.When I run I hit:
Solution 2:
SelectedItem
bySelectedValue
in the binding of my view.Binding.subModelSeq
Binding.subModelSelectedItem
withBinding.twoWay
and fix the types.When I run the code I hit:
What I am missing?
The text was updated successfully, but these errors were encountered: