MCPcopy Index your code
hub / github.com/g3n/engine / lastPage

Method lastPage

gui/table.go:1088–1098  ·  view source on GitHub ↗

lastPage shows the last page of rows and selects the last row

()

Source from the content-addressed store, hash-verified

1086
1087// lastPage shows the last page of rows and selects the last row
1088func (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

Callers 1

onKeyMethod · 0.95

Calls 3

calcMaxFirstMethod · 0.95
recalcMethod · 0.95
DispatchMethod · 0.65

Tested by

no test coverage detected