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

Method toggleRowSel

gui/table.go:1111–1116  ·  view source on GitHub ↗

toggleRowSel toogles the specified row selection state Should be used only when multi row selection is enabled

(ri int)

Source from the content-addressed store, hash-verified

1109// toggleRowSel toogles the specified row selection state
1110// Should be used only when multi row selection is enabled
1111func (t *Table) toggleRowSel(ri int) {
1112
1113 trow := t.rows[ri]
1114 trow.selected = !trow.selected
1115 t.Dispatch(OnChange, nil)
1116}
1117
1118// setColWidth sets the width of the specified column
1119func (t *Table) setColWidth(c *tableColHeader, width float32) {

Callers 2

onMouseMethod · 0.95
onKeyMethod · 0.95

Calls 1

DispatchMethod · 0.65

Tested by

no test coverage detected