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

Function NewTable

table.go:74–83  ·  view source on GitHub ↗

NewTable creates a new Table with the specified parameters.

(p *TableParams)

Source from the content-addressed store, hash-verified

72
73// NewTable creates a new Table with the specified parameters.
74func NewTable(p *TableParams) *Table {
75 t := new(Table)
76
77 cp := p.toLibui()
78 t.t = C.uiNewTable(cp)
79 C.pkguiFreeTableParams(cp)
80
81 t.ControlBase = NewControlBase(t, uintptr(unsafe.Pointer(t.t)))
82 return t
83}
84
85// AppendTextColumn appends a text column to t. name is
86// displayed in the table header. textModelColumn is where the text

Callers

nothing calls this directly

Calls 2

NewControlBaseFunction · 0.85
toLibuiMethod · 0.65

Tested by

no test coverage detected