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

Method AppendButtonColumn

table.go:153–157  ·  view source on GitHub ↗

AppendButtonColumn appends a column to t that shows a button that the user can click on. When the user does click on the button, SetCellValue is called with a nil value and buttonModelColumn as the column. CellValue on buttonModelColumn should return the text to show in the button.

(name string, buttonModelColumn int, buttonClickableModelColumn int)

Source from the content-addressed store, hash-verified

151// CellValue on buttonModelColumn should return the text to show
152// in the button.
153func (t *Table) AppendButtonColumn(name string, buttonModelColumn int, buttonClickableModelColumn int) {
154 cname := C.CString(name)
155 defer freestr(cname)
156 C.uiTableAppendButtonColumn(t.t, cname, C.int(buttonModelColumn), C.int(buttonClickableModelColumn))
157}

Callers 1

setupUIFunction · 0.95

Calls 1

freestrFunction · 0.85

Tested by

no test coverage detected