-
Notifications
You must be signed in to change notification settings - Fork 948
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
Add a continuous_update option for text widgets #584
Comments
An event which triggers on enter or when a user leaves the text box would be useful. The current Or perhaps some sort of validation to highlight the fact that the text has changed but the change hasn't been submitted yet. |
+1 to the UI indication of a 'dirty' textbox. |
+1 for this! I wrote a notebook that uses ipywidgets to control a motor, and had to use a Would a pull request implementing this be likely to be merged? |
Yes, very likely! |
I'd love to work on this, but if someone else wants to please go ahead! I probably won't have time for about the next month, but after I'm done with my current side project I'll give this a whirl. All this to say... If someone comes across this post in about a month and I haven't re-posted, feel free to ping me! |
Thanks! I've also marked it as sprint-friendly, so it'll be easier for new contributors to find. |
ping @codypiersall, as requested. Someone else just asked for this today too. |
To implement this, I would:
|
The sliders have a continuous_update option that only triggers a value change when the user stops dragging a slider: https://github.com/ipython/ipywidgets/blob/master/ipywidgets/widgets/widget_int.py#L155. Likewise, the text boxes should have an option to only update the value when the text box is blurred, or maybe when the user presses enter in a one-line textbox (sort of the equivalent of the on_submit handler textboxes currently have).
The text was updated successfully, but these errors were encountered: