prevPage shows the previous page of rows and selects its last row
()
| 1058 | |
| 1059 | // prevPage shows the previous page of rows and selects its last row |
| 1060 | func (t *Table) prevPage() { |
| 1061 | |
| 1062 | if t.firstRow == 0 { |
| 1063 | t.rowCursor = 0 |
| 1064 | t.recalc() |
| 1065 | t.Dispatch(OnChange, nil) |
| 1066 | return |
| 1067 | } |
| 1068 | plen := t.lastRow - t.firstRow |
| 1069 | if plen <= 0 { |
| 1070 | return |
| 1071 | } |
| 1072 | t.scrollUp(plen) |
| 1073 | } |
| 1074 | |
| 1075 | // firstPage shows the first page of rows and selects the first row |
| 1076 | func (t *Table) firstPage() { |