MCPcopy Index your code
hub / github.com/g3n/engine / SetRow

Method SetRow

gui/table.go:389–396  ·  view source on GitHub ↗

SetRow sets the value of all the cells of the specified row from the specified map indexed by column id.

(row int, values map[string]interface{})

Source from the content-addressed store, hash-verified

387// SetRow sets the value of all the cells of the specified row from
388// the specified map indexed by column id.
389func (t *Table) SetRow(row int, values map[string]interface{}) {
390
391 if row < 0 || row >= len(t.rows) {
392 panic(tableErrInvRow)
393 }
394 t.setRow(row, values)
395 t.recalc()
396}
397
398// SetCell sets the value of the cell specified by its row and column id
399// The function panics if the passed row or column id is invalid

Callers 1

insertRowMethod · 0.95

Calls 2

setRowMethod · 0.95
recalcMethod · 0.95

Tested by

no test coverage detected