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

Method AppendTextColumn

table.go:90–96  ·  view source on GitHub ↗

AppendTextColumn appends a text column to t. name is displayed in the table header. textModelColumn is where the text comes from. If a row is editable according to textEditableModelColumn, SetCellValue is called with textModelColumn as the column.

(name string, textModelColumn int, textEditableModelColumn int, textParams *TableTextColumnOptionalParams)

Source from the content-addressed store, hash-verified

88// textEditableModelColumn, SetCellValue is called with
89// textModelColumn as the column.
90func (t *Table) AppendTextColumn(name string, textModelColumn int, textEditableModelColumn int, textParams *TableTextColumnOptionalParams) {
91 cname := C.CString(name)
92 defer freestr(cname)
93 cp := textParams.toLibui()
94 defer C.pkguiFreeTableTextColumnOptionalParams(cp)
95 C.uiTableAppendTextColumn(t.t, cname, C.int(textModelColumn), C.int(textEditableModelColumn), cp)
96}
97
98// AppendImageColumn appends an image column to t.
99// Images are drawn at icon size, appropriate to the pixel density

Callers 1

setupUIFunction · 0.95

Calls 2

freestrFunction · 0.85
toLibuiMethod · 0.65

Tested by

no test coverage detected