MCPcopy
hub / github.com/g3n/engine / RemoveRow

Method RemoveRow

gui/table.go:518–531  ·  view source on GitHub ↗

RemoveRow removes from the specified row from the table

(row int)

Source from the content-addressed store, hash-verified

516
517// RemoveRow removes from the specified row from the table
518func (t *Table) RemoveRow(row int) {
519
520 // Checks row index
521 if row < 0 || row >= len(t.rows) {
522 panic(tableErrInvRow)
523 }
524 t.removeRow(row)
525 maxFirst := t.calcMaxFirst()
526 if t.firstRow > maxFirst {
527 t.firstRow = maxFirst
528 }
529 t.recalc()
530 t.Dispatch(OnTableRowCount, nil)
531}
532
533// Clear removes all rows from the table
534func (t *Table) Clear() {

Callers

nothing calls this directly

Calls 4

removeRowMethod · 0.95
calcMaxFirstMethod · 0.95
recalcMethod · 0.95
DispatchMethod · 0.65

Tested by

no test coverage detected