mirror of
https://github.com/gizak/termui.git
synced 2025-05-08 19:29:47 +08:00
Add support for scrolling to top and buttom
This commit is contained in:
parent
c9896e20c6
commit
cc62c7257c
@ -188,3 +188,11 @@ func (self *Table) ScrollUp() {
|
||||
func (self *Table) ScrollDown() {
|
||||
self.ScrollAmount(1)
|
||||
}
|
||||
|
||||
func (self *Table) ScrollFirst() {
|
||||
self.SelectedRow = 1
|
||||
}
|
||||
|
||||
func (self *Table) ScrollLast() {
|
||||
self.SelectedRow = len(self.Rows) - 1
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user