mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[PR #56] [MERGED] Add GetOffset method on Table #847
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#847
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?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/56
Author: @sachaos
Created: 2/11/2018
Status: ✅ Merged
Merged: 2/13/2018
Merged by: @rivo
Base:
master← Head:master📝 Commits (1)
453c374Add GetOffset method on Table📊 Changes
1 file changed (+6 additions, -0 deletions)
View changed files
📝
table.go(+6 -0)📄 Description
Firstly, Thank you for your great job!
I propose GetOffset method for Table struct.
Context
I'm developping application which switching between force scrolling mode and row selectable mode dynamically. (like a
less +Fcommand option)I was trying to get current visible rows & cols number and set the top of the visible rows as selected row, by
func (t *Table) Select(row, column int) *Table.But the
rowOffset,columnOffsetfield was private, and no getter method for these.So I implemented the getter method.
Use case
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.