Replies: 2 comments 2 replies
-
Hi @me21, What is wrong with this straightforward approach: a = ui.date()
b = ui.date().bind_value(a) # two-way sync or a = ui.date()
b = ui.date().bind_value_from(a) # one-way sync Apart from that, I created PR #4456 to add a |
Beta Was this translation helpful? Give feedback.
2 replies
-
PR #4456 has been merged and will be released as part of version 3.0. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Question
Hello everyone,
Is there a way to obtain the previous value of the element inside the
on_change
handler?I would like to keep two date inputs in sync with each other by default, so that whenever the first is changed by the user, the second one is changed as well; but if the user explicitly changes the second one's value, they are no longer in sync.
Beta Was this translation helpful? Give feedback.
All reactions