[GH-ISSUE #819] Help with List #595

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

Originally created by @rmasci on GitHub (Mar 2, 2023).
Original GitHub issue: https://github.com/rivo/tview/issues/819

So I am able to create a list, I can see that list, but what I want to do is be able to have someone arrow down and hit enter, or double click with mouse, or when they select that element in the list. I'd like to see a popup so that the user can edit what the value is for that section of the list. Wondering if there was a way to do this?

Originally created by @rmasci on GitHub (Mar 2, 2023). Original GitHub issue: https://github.com/rivo/tview/issues/819 So I am able to create a list, I can see that list, but what I want to do is be able to have someone arrow down and hit enter, or double click with mouse, or when they select that element in the list. I'd like to see a popup so that the user can edit what the value is for that section of the list. Wondering if there was a way to do this?
kerem closed this issue 2026-03-04 01:06:20 +03:00
Author
Owner

@rivo commented on GitHub (Mar 25, 2023):

You'll want to use SetSelectedFunc() to listen to list item selection events. Then you place your list and your form into a Pages element and show the form when the user selects an item. See the Wiki for an example of how to center an element.

<!-- gh-comment-id:1483914772 --> @rivo commented on GitHub (Mar 25, 2023): You'll want to use [`SetSelectedFunc()`](https://pkg.go.dev/github.com/rivo/tview#List.SetSelectedFunc) to listen to list item selection events. Then you place your list and your form into a `Pages` element and show the form when the user selects an item. See the [Wiki](https://github.com/rivo/tview/wiki/Modal) for an example of how to center an element.
Author
Owner

@rivo commented on GitHub (Aug 26, 2023):

Since there were no further comments, I'm assuming this has been solved.

<!-- gh-comment-id:1694359207 --> @rivo commented on GitHub (Aug 26, 2023): Since there were no further comments, I'm assuming this has been solved.
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#595
No description provided.