bind_value_from disable/enable #1041
emelbaer
started this conversation in
Ideas / Feature Requests
Replies: 2 comments 1 reply
-
Hi @emelbaer! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi Falko,thanks for replaying.
A situation like:
A is a number(input field);
B is generating a Number e.g. a Slider, but this Element is shared amongst the clients.
C is another number holding Element.
B.bind_value_from(C)
A.bind_value_from(B)
But I need to edit A some time and send the Value e.g. by submit button to C - cause B shouldn’t be changed directly from A change…
My first idea was to disable the input A in cases where it should just be updated from B - and than enable A when it’s time to interact…
but as I pointed out I was no more able to change A😅
Nevertheless, I solved in the Way you described, having a A‘ which is bind to B and just show the value… and A is free from any bind.
BR,Emel
[edit]: formatting - was using the replay function from eMail (note to everyone: do not use this it’s terrible in formating
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there,
I face the problem, when I have a Input/number/text and apply a "bind_value_from" on a instance;
A "user" change of this ui's is no more possible/useful.
Sure one solution is to use "bind_value" instead of "bind_value_from".
-> Freature Request:
For user/client controllable Inputs, "deactivate" bind_value_from (in binding.active_links e.g. move to binding.inactive_links)
When the Element is enabled (than the user/client can enter a own value)
On the otherside when the element is disabled (no user/client input possible) "restore"/"activate" the binding (move from binding.inactive_links back to binding.active_links)
If this is not an new/missing Feature, I would be glat to hear some solution for such situations... 😄
Best Regards
Beta Was this translation helpful? Give feedback.
All reactions