MCPcopy Create free account
hub / github.com/andlabs/ui / SetCellValue

Method SetCellValue

examples/table.go:111–126  ·  view source on GitHub ↗
(m *ui.TableModel, row, column int, value ui.TableValue)

Source from the content-addressed store, hash-verified

109}
110
111func (mh *modelHandler) SetCellValue(m *ui.TableModel, row, column int, value ui.TableValue) {
112 if row == 9 && column == 2 {
113 mh.row9Text = string(value.(ui.TableString))
114 }
115 if column == 6 { // row background color
116 prevYellowRow := mh.yellowRow
117 mh.yellowRow = row
118 if prevYellowRow != -1 {
119 m.RowChanged(prevYellowRow)
120 }
121 m.RowChanged(mh.yellowRow)
122 }
123 if column == 7 { // checkboxes
124 mh.checkStates[row] = int(value.(ui.TableInt))
125 }
126}
127
128func appendImageNamed(i *ui.Image, which string) {
129 b := rawImages[which]

Callers

nothing calls this directly

Calls 1

RowChangedMethod · 0.80

Tested by

no test coverage detected