mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #604] desire callback when formitem receives focus #442
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#442
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 @gdamore on GitHub (May 20, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/604
I have a second pane which provides additional help on screen -- ideally I'd like to have a callback that occurs when the focused item changes, so that I can provide text relevant to that particular input field. Sort like an OnFocus() function or something.
@gdamore commented on GitHub (May 20, 2021):
I'd be happy to have that as a method on the FormItem, but it could also work to do do this in the Form itself.
@rivo commented on GitHub (May 28, 2021):
Primitiveand therefore alsoFormItemhasFocus()which is called when it receives focus. Have you tried that?@rivo commented on GitHub (Nov 9, 2021):
Box.SetFocusFunc()exists now. Let me know if this helps you.