[GH-ISSUE #121] Feature: hidden cell for table #95

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

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:

  1. either we could mark the cell to be an invisible cell,
  2. or we could use a separate method other than SetText to just leave the value into table's buffered data and have a method to get access this value using the associated Location: row, col.

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

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: 1. either we could mark the cell to be an invisible cell, 2. or we could use a separate method other than SetText to just leave the value into table's buffered data and have a method to get access this value using the associated Location: row, col. 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
kerem closed this issue 2026-03-04 01:01:54 +03:00
Author
Owner

@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.

<!-- gh-comment-id:392125584 --> @rivo commented on GitHub (May 25, 2018): How about setting the cell's text color to [`tcell.ColorDefault`](https://godoc.org/github.com/gdamore/tcell#Color)? I haven't tried this myself yet but theoretically, it should make your text invisible.
Author
Owner

@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.

<!-- gh-comment-id:392324644 --> @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.
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#95
No description provided.