RemoveRow removes from the specified row from the table
(row int)
| 516 | |
| 517 | // RemoveRow removes from the specified row from the table |
| 518 | func (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 |
| 534 | func (t *Table) Clear() { |
nothing calls this directly
no test coverage detected