mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[PR #287] [CLOSED] Added GetFormItems() #896
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#896
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/287
Author: @mikeschinkel
Created: 6/3/2019
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
9a39456Added GetFormItems()📊 Changes
1 file changed (+6 additions, -0 deletions)
View changed files
📝
form.go(+6 -0)📄 Description
As I could not find a current way to determine the number of form items from code written outside of the
tview.Formclass, theGetFormItem(n)method can't be used reliably if the number of fields is unknown. For my use case I wanted to iterate all of them so I am submitting this pull request that would allow a developer to do so.Hopefully this is simple and obvious enough of a change that it will be a no-brainer to commit.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.