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

Method prevPage

gui/table.go:1060–1073  ·  view source on GitHub ↗

prevPage shows the previous page of rows and selects its last row

()

Source from the content-addressed store, hash-verified

1058
1059// prevPage shows the previous page of rows and selects its last row
1060func (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
1076func (t *Table) firstPage() {

Callers 1

onKeyMethod · 0.95

Calls 3

recalcMethod · 0.95
scrollUpMethod · 0.95
DispatchMethod · 0.65

Tested by

no test coverage detected