mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #948] Make Table.cellAt public #695
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#695
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 @tliron on GitHub (Feb 17, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/948
The cellAt function is currently private.
However, it makes sense for me to make it public, to allow for custom mouse handlers to determine which cell the mouse is pointing to.
It's actually impossible to workaround this issue because the function relies on private properties in the struct.
@tliron commented on GitHub (Feb 18, 2024):
OK, maybe there is a workaround. For reference, here's my attempt. It "works" but I have an uneasy feeling that I'm not taking into account some factors. (By the way, does
GetLastPositionreturn negativexif the column is hidden to the left?)@rivo commented on GitHub (Apr 4, 2024):
I made
Table.CellAtpublic.