mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #365] Iteration difficult on form values. #271
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#271
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 @stephen-mw on GitHub (Nov 11, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/365
It's possible I'm missing something obvious for a retrieving a list of
itemsinForms. Currently thef.itemsarray isn't externally accessible, which means when I need to for-loop over the form items viaf.GetFormItem(N)and catch the out-of-index panic (or, keep a secondary index of things added to the form).If I'm not missing something obvious, please accept my PR, which makes it easier to do loops on the items by exposing the
lenof available form items.@stephen-mw commented on GitHub (Nov 11, 2019):
Looks like there's an existing fix in PR 298