mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #725] Get table row and column from inputfield #530
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#530
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 @jacques-andre on GitHub (Apr 18, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/725
I am creating a Sudoku game where a user is able to select a cell in a table and using a inputField able to input a value for that cell.
I am having difficulties getting the selected row and column from the user and passing it to my inputField.
I want my inputField to be able to change the current cell's value.
@moson-mo commented on GitHub (Jun 6, 2022):
Hi,
With the change above you probably don't want to do this at all...
Full code
@rivo commented on GitHub (Jun 10, 2022):
@jacques-andre You're setting the text of the table cell too early. When the
selected funcis executed, there is no text yet in the input field. You have to wait for the user to enter it. There are many ways to solve this. Here's one way: