mirror of
https://github.com/rivo/tview.git
synced 2026-05-01 07:45:50 +03:00
[GH-ISSUE #595] wiki/InputField needs a tiny update #436
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#436
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 @shtukas on GitHub (Apr 28, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/595
The example here: https://github.com/rivo/tview/wiki/InputField needs a tiny update because as it stands it errors with
./main.go:14:15: cannot use func literal (type func("github.com/gdamore/tcell".Key)) as type func("github.com/gdamore/tcell/v2".Key) in argument to tview.NewInputField().SetLabel("Enter a number: ").SetFieldWidth(10).SetAcceptanceFunc(tview.InputFieldInteger).SetDoneFunc
The fix is to use this import : "github.com/gdamore/tcell/v2"
Thanks :)
@rivo commented on GitHub (May 28, 2021):
Thanks for the hint. I've updated this page and all the others in the Wiki (and also the gist with the PostgreSQL browser).