1
0
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:
Ayooluwa Isaiah 2020-08-25 13:48:16 +01:00
parent c9896e20c6
commit cc62c7257c
No known key found for this signature in database
GPG Key ID: 08CF071B5764D484

View File

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