mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[PR #298] [CLOSED] Added GetFormItems() #902
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#902
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/298
Author: @mikeschinkel
Created: 6/9/2019
Status: ❌ Closed
Base:
master← Head:form_getformitems📝 Commits (1)
8663dc7Added 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.Form class, the GetFormItem(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.
(Note: This is a replacement for #287 that I closed because it was based on the master branch and not on a fork specific to this PR.)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.