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

Method ColumnTypes

examples/table.go:35–47  ·  view source on GitHub ↗
(m *ui.TableModel)

Source from the content-addressed store, hash-verified

33}
34
35func (mh *modelHandler) ColumnTypes(m *ui.TableModel) []ui.TableValue {
36 return []ui.TableValue{
37 ui.TableString(""), // column 0 text
38 ui.TableString(""), // column 1 text
39 ui.TableString(""), // column 2 text
40 ui.TableColor{}, // row background color
41 ui.TableColor{}, // column 1 text color
42 ui.TableImage{}, // column 1 image
43 ui.TableString(""), // column 4 button text
44 ui.TableInt(0), // column 3 checkbox state
45 ui.TableInt(0), // column 5 progress
46 }
47}
48
49func (mh *modelHandler) NumRows(m *ui.TableModel) int {
50 return 15

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected