setCell sets the value of the cell specified by its row and column id
(row int, colid string, value interface{})
| 676 | |
| 677 | // setCell sets the value of the cell specified by its row and column id |
| 678 | func (t *Table) setCell(row int, colid string, value interface{}) { |
| 679 | |
| 680 | c := t.header.cmap[colid] |
| 681 | if c == nil { |
| 682 | return |
| 683 | } |
| 684 | cell := t.rows[row].cells[c.order] |
| 685 | cell.label.SetText(fmt.Sprintf(c.format, value)) |
| 686 | cell.value = value |
| 687 | } |
| 688 | |
| 689 | // insertRow is the internal version of InsertRow which does not call recalc() |
| 690 | func (t *Table) insertRow(row int, values map[string]interface{}) { |