[GH-ISSUE #772] Form example outdated? #564

Closed
opened 2026-03-04 01:06:02 +03:00 by kerem · 3 comments
Owner

Originally created by @Thijxx on GitHub (Nov 18, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/772

https://github.com/rivo/tview/wiki/Form

this seems to be no longer a working example
tview.NewForm has no AddTextArea

when I use AddFormItem it does not accept tview.NewTextArea() as input so not sure how to fix it

Originally created by @Thijxx on GitHub (Nov 18, 2022). Original GitHub issue: https://github.com/rivo/tview/issues/772 https://github.com/rivo/tview/wiki/Form this seems to be no longer a working example `tview.NewForm` has no `AddTextArea` when I use `AddFormItem` it does not accept `tview.NewTextArea()` as input so not sure how to fix it
kerem closed this issue 2026-03-04 01:06:03 +03:00
Author
Owner

@rivo commented on GitHub (Nov 18, 2022):

It does:

https://pkg.go.dev/github.com/rivo/tview#Form.AddTextArea

You'll want to upgrade to the latest version.

<!-- gh-comment-id:1319979431 --> @rivo commented on GitHub (Nov 18, 2022): It does: https://pkg.go.dev/github.com/rivo/tview#Form.AddTextArea You'll want to upgrade to the latest version.
Author
Owner

@Thijxx commented on GitHub (Nov 18, 2022):

Thanks for the quick reply, how does that work without versions in the repo?
I have tried go install github.com/rivo/tview@latest and go get -u github.com/rivo/tview

<!-- gh-comment-id:1319989548 --> @Thijxx commented on GitHub (Nov 18, 2022): Thanks for the quick reply, how does that work without versions in the repo? I have tried `go install github.com/rivo/tview@latest` and `go get -u github.com/rivo/tview`
Author
Owner

@Thijxx commented on GitHub (Nov 18, 2022):

go mod vendor
go get github.com/rivo/tview@latest

<!-- gh-comment-id:1319996811 --> @Thijxx commented on GitHub (Nov 18, 2022): `go mod vendor` ` go get github.com/rivo/tview@latest`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#564
No description provided.