InsertRow inserts the specified values in a new row at the specified index
(row int, values map[string]interface{})
| 504 | |
| 505 | // InsertRow inserts the specified values in a new row at the specified index |
| 506 | func (t *Table) InsertRow(row int, values map[string]interface{}) { |
| 507 | |
| 508 | // Checks row index |
| 509 | if row < 0 || row > len(t.rows) { |
| 510 | panic(tableErrInvRow) |
| 511 | } |
| 512 | t.insertRow(row, values) |
| 513 | t.recalc() |
| 514 | t.Dispatch(OnTableRowCount, nil) |
| 515 | } |
| 516 | |
| 517 | // RemoveRow removes from the specified row from the table |
| 518 | func (t *Table) RemoveRow(row int) { |