mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #398] #question Howto update form values in 2 way binding #290
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#290
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shaunenslin on GitHub (Feb 7, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/398
Hi
Another question is I would like to change the values on a particular form field, based on what was selected.
By way of explanation, I would like to ask 2 questions via a drop down and then update the extractName field as they go. I do need the option where they can overwrite it in the end.
So, I am updating the extractName var and then performing an app.Draw hoping that will do the trick, but it has not.
Is some sort of 2 way binding available via a screen refresh of sorts?
@tslocum commented on GitHub (Feb 14, 2020):
Attach a handler via DropDown.SetDoneFunc to both DropDowns which listens for when the user advances to the next field and prefills the extract name.
@rivo commented on GitHub (Feb 19, 2020):
Also,
p.app.Draw()is not needed here. See my answer in #397.Please let me know if you still need help with this issue.