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

Method applyRowStyle

gui/table.go:1559–1565  ·  view source on GitHub ↗

applyRowStyle applies the specified style to all cells for the specified table row

(trow *tableRow, trs *TableRowStyle)

Source from the content-addressed store, hash-verified

1557
1558// applyRowStyle applies the specified style to all cells for the specified table row
1559func (t *Table) applyRowStyle(trow *tableRow, trs *TableRowStyle) {
1560
1561 for i := 0; i < len(trow.cells); i++ {
1562 cell := trow.cells[i]
1563 cell.ApplyStyle(&trs.PanelStyle)
1564 }
1565}
1566
1567// applyStatusStyle applies the status style
1568func (t *Table) applyStatusStyle() {

Callers 1

updateRowStyleMethod · 0.95

Calls 1

ApplyStyleMethod · 0.45

Tested by

no test coverage detected