mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #170] Feature Request : Get a FormItem typed or add some shortcut on InputField (Ctrl+P) #137
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#137
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 @joakim-ribier on GitHub (Oct 6, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/170
Hi,
I tried to understand how it's possible to get an already typed
FormItem(example:InputField) fromForm, for to add some shortcuts or to set a text (it what I need), but I did'nt succeed, I think is not possible ?I read the wiki and the examples but sorry if I missed something...
Thanks to you,
@joegrasse commented on GitHub (Oct 8, 2018):
I am not a 100% sure what you are asking, but there is the GetFormItemByLabel method. You provide the name of the item you want, and it returns the first
FormItemthat matches.@joakim-ribier commented on GitHub (Oct 8, 2018):
Ok sorry for that, I think I was very tired...
Thanks for your time!
Otherwise awesome library to make text ui app ;-)
@joegrasse commented on GitHub (Oct 8, 2018):
Glad I could help. I am just a user of the library like you :)