removeRow removes from the table the row specified its index
(row int)
| 760 | |
| 761 | // removeRow removes from the table the row specified its index |
| 762 | func (t *Table) removeRow(row int) { |
| 763 | |
| 764 | // Get row to be removed |
| 765 | trow := t.rows[row] |
| 766 | |
| 767 | // Remove row from table children |
| 768 | t.Panel.Remove(trow) |
| 769 | |
| 770 | // Remove row from rows array |
| 771 | copy(t.rows[row:], t.rows[row+1:]) |
| 772 | t.rows[len(t.rows)-1] = nil |
| 773 | t.rows = t.rows[:len(t.rows)-1] |
| 774 | |
| 775 | // Dispose row resources |
| 776 | trow.DisposeChildren(true) |
| 777 | trow.Dispose() |
| 778 | } |
| 779 | |
| 780 | // onCursorPos process subscribed cursor position events |
| 781 | func (t *Table) onCursorPos(evname string, ev interface{}) { |
no test coverage detected