lastPage shows the last page of rows and selects the last row
()
| 1086 | |
| 1087 | // lastPage shows the last page of rows and selects the last row |
| 1088 | func (t *Table) lastPage() { |
| 1089 | |
| 1090 | if len(t.rows) == 0 { |
| 1091 | return |
| 1092 | } |
| 1093 | maxFirst := t.calcMaxFirst() |
| 1094 | t.firstRow = maxFirst |
| 1095 | t.rowCursor = len(t.rows) - 1 |
| 1096 | t.recalc() |
| 1097 | t.Dispatch(OnChange, nil) |
| 1098 | } |
| 1099 | |
| 1100 | // selectRow selects the specified row. |
| 1101 | // Should be used only when multi row selection is enabled |
no test coverage detected