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

Method AppendCheckboxColumn

table.go:121–125  ·  view source on GitHub ↗

AppendCheckboxColumn appends a column to t that contains a checkbox that the user can interact with (assuming the checkbox is editable). SetCellValue will be called with checkboxModelColumn as the column in this case.

(name string, checkboxModelColumn int, checkboxEditableModelColumn int)

Source from the content-addressed store, hash-verified

119// checkbox is editable). SetCellValue will be called with
120// checkboxModelColumn as the column in this case.
121func (t *Table) AppendCheckboxColumn(name string, checkboxModelColumn int, checkboxEditableModelColumn int) {
122 cname := C.CString(name)
123 defer freestr(cname)
124 C.uiTableAppendCheckboxColumn(t.t, cname, C.int(checkboxModelColumn), C.int(checkboxEditableModelColumn))
125}
126
127// AppendCheckboxTextColumn appends a column to t
128// that contains both a checkbox and text.

Callers 1

setupUIFunction · 0.95

Calls 1

freestrFunction · 0.85

Tested by

no test coverage detected