Open SimplySeth opened 4 months ago
From what I can see, you don't need to call SetInputCapture()
, especially not for each row. Just call table.SetSelectable(true, false)
once when initializing your table. Use SetSelectedFunc()
to listen for selections (Enter key). It's all there in the documentation.
For an example of this, check out the demo presentation included in the package. The code for selecting rows is here: https://github.com/rivo/tview/blob/65571ae51e71d29a5e8a0082667b778939cca29f/demos/presentation/table.go#L311
Is there an example somewheres of a table where you can highlight and select an entire row?
This is what I'm trying so far: