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

Method removeRow

gui/table.go:762–778  ·  view source on GitHub ↗

removeRow removes from the table the row specified its index

(row int)

Source from the content-addressed store, hash-verified

760
761// removeRow removes from the table the row specified its index
762func (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
781func (t *Table) onCursorPos(evname string, ev interface{}) {

Callers 2

SetRowsMethod · 0.95
RemoveRowMethod · 0.95

Calls 3

DisposeChildrenMethod · 0.80
DisposeMethod · 0.65
RemoveMethod · 0.45

Tested by

no test coverage detected