mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #121] Feature: hidden cell for table #95
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#95
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 @stephencheng on GitHub (May 24, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/121
Not sure if this is a good idea.
Sometimes, just for the sake of convenience, it might be good to leave some meta data in the table cell for the later access, but these meta data wouldn't be useful visually for user.
So, I am expecting if there is a way:
I understand that this could be managed as long as I leave a buffered two dimension array there to mirror with the table, but I feel that it's convenient that I could throw the data to the table and forget about it. The access entry would be normally from the selected event, it is just easy to associate the event with the particular row and underneath data.
Thanks
@rivo commented on GitHub (May 25, 2018):
How about setting the cell's text color to
tcell.ColorDefault? I haven't tried this myself yet but theoretically, it should make your text invisible.@stephencheng commented on GitHub (May 27, 2018):
Setting both Bg color and Fg color to the same does not make it invisible. I made it less visible by setting the MaxWidth to 1.
Thanks for the idea.