mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #1101] cannot use textView (variable of type *tview.Box) as tview.FormItem value in argument to tview.NewForm() #799
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#799
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 @daryl-williams on GitHub (Jun 29, 2025).
Original GitHub issue: https://github.com/rivo/tview/issues/1101
I am trying to write my first tview app and would like to add a textView that will subsequently get filled in, I would also like to add a border to the textView. If I add the textView to the form using the AddTextView command this works however I do not see how to add a border to the textView using this method. If I try to add the textView using the AddFormItem command as demonstrated in multiple web examples I get the followng error:
cannot use textView (variable of type *tview.Box) as tview.FormItem value in argument to tview.NewForm()So my question is what it is the correct way to add a textView with a border to a Form, It really is rather confusing. Any help would be much appreciated.
Best Regards,
Daryl
@rivo commented on GitHub (Aug 27, 2025):
I don't get that error message: