[PR #703] Add SetSelectorWrap #1021

Open
opened 2026-03-04 01:09:03 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/rivo/tview/pull/703
Author: @darkhz
Created: 2/16/2022
Status: 🔄 Open

Base: masterHead: selector_wrap


📝 Commits (1)

📊 Changes

1 file changed (+33 additions, -1 deletions)

View changed files

📝 table.go (+33 -1)

📄 Description

In some cases, having the selector span across the entire column width may be unnecessary, especially if only one column is being selected and/or there are huge gaps between columns. In such cases, wrapping the selector around the TableCell's text may be better.

Before selector wrap:
selector_nowrap

After selector wrap:
selector_wrap


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/rivo/tview/pull/703 **Author:** [@darkhz](https://github.com/darkhz) **Created:** 2/16/2022 **Status:** 🔄 Open **Base:** `master` ← **Head:** `selector_wrap` --- ### 📝 Commits (1) - [`387d523`](https://github.com/rivo/tview/commit/387d52311e20fab89831936f913ba7e2aa773ee9) Added SetSelectorWrap ### 📊 Changes **1 file changed** (+33 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `table.go` (+33 -1) </details> ### 📄 Description In some cases, having the selector span across the entire column width may be unnecessary, especially if only one column is being selected and/or there are huge gaps between columns. In such cases, wrapping the selector around the TableCell's text may be better. Before selector wrap: ![selector_nowrap](https://user-images.githubusercontent.com/44058754/154280708-e8933ec1-34e8-4c2d-81db-000177ea65ba.png) After selector wrap: ![selector_wrap](https://user-images.githubusercontent.com/44058754/154280738-a8a3d3ae-06ed-4a77-bd75-a38d5154f891.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#1021
No description provided.