[PR #396] Add scroll bar to List, DropDown, Table and TreeView #939

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

📋 Pull Request Information

Original PR: https://github.com/rivo/tview/pull/396
Author: @tslocum
Created: 2/1/2020
Status: 🔄 Open

Base: masterHead: scrollbar


📝 Commits (1)

  • 27a8f95 Add scroll bar to List, DropDown, Table and TreeView

📊 Changes

7 files changed (+196 additions, -9 deletions)

View changed files

📝 dropdown.go (+4 -1)
📝 inputfield.go (+3 -0)
📝 list.go (+43 -0)
📝 styles.go (+2 -0)
📝 table.go (+62 -4)
📝 treeview.go (+31 -4)
📝 util.go (+51 -0)

📄 Description

Scroll bars are drawn when at least one item or line is offscreen.

A horizontal scroll bar has not yet been implemented for Table.

Live demo: ssh cview.rocketnine.space -p 20000

cview_scrollbar


🔄 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/396 **Author:** [@tslocum](https://github.com/tslocum) **Created:** 2/1/2020 **Status:** 🔄 Open **Base:** `master` ← **Head:** `scrollbar` --- ### 📝 Commits (1) - [`27a8f95`](https://github.com/rivo/tview/commit/27a8f95b4b25f17c9bc7a8d296379bc3761437fa) Add scroll bar to List, DropDown, Table and TreeView ### 📊 Changes **7 files changed** (+196 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `dropdown.go` (+4 -1) 📝 `inputfield.go` (+3 -0) 📝 `list.go` (+43 -0) 📝 `styles.go` (+2 -0) 📝 `table.go` (+62 -4) 📝 `treeview.go` (+31 -4) 📝 `util.go` (+51 -0) </details> ### 📄 Description Scroll bars are drawn when at least one item or line is offscreen. A horizontal scroll bar has not yet been implemented for Table. Live demo: `ssh cview.rocketnine.space -p 20000` ![cview_scrollbar](https://user-images.githubusercontent.com/9431/73594680-6ad7e000-44c5-11ea-9635-de769bc518ac.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#939
No description provided.