mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #888] Change text in input field depending on what has been typed in #648
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#648
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 @paololazzari on GitHub (Sep 25, 2023).
Original GitHub issue: https://github.com/rivo/tview/issues/888
I have a
tviewapplication which is using bothInputFieldandTextView.The text shown in the TextView depends on what I type in the InputField, and to do this I am using
SetChangedFuncandQueueUpdateDraw. This works well.Now I am looking to change the functionality of the InputField such that if I type
foo bar, thenbaris removed, resulting in the InputField then having onlyfoo.What's the best way to achieve this?
@paololazzari commented on GitHub (Sep 26, 2023):
Brilliant, thank you.
I noticed that this method is present:
I suppose this method could also be used right?