mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[PR #294] Added a ChangedFunc to Form #900
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#900
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?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/294
Author: @mikeschinkel
Created: 6/5/2019
Status: 🔄 Open
Base:
master← Head:form_changed📝 Commits (1)
911ae60Added a ChangedFunc to Form📊 Changes
1 file changed (+13 additions, -0 deletions)
View changed files
📝
form.go(+13 -0)📄 Description
I want to display help for each field, but to do so I need to be called right after a field changes and not before.
I could have hacked it and used the InputField and CheckBox
ChangeFuncs, but DropDown did not have one and if I was going to add one why not add for the form?What my PR does not address is changes with buttons, because Button does not implement
FormItem, although I think it should since it is actually an item on a form. If it were a FormItem them my changed code could work for both.If you agree, I'll be happy to add the required code to make
ButtonaFormItemto this PR. Or you can just accept this PR.Or neither (but I hope you will accept it, otherwise I'll have to live with a fork.)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.