MCPcopy Create free account
hub / github.com/cogentcore/core / SetTable

Method SetTable

tensor/tensorcore/table.go:135–145  ·  view source on GitHub ↗

SetTable sets the source table that we are viewing, using a sequential IndexView and then configures the display

(et *table.Table)

Source from the content-addressed store, hash-verified

133// SetTable sets the source table that we are viewing, using a sequential IndexView
134// and then configures the display
135func (tb *Table) SetTable(et *table.Table) *Table {
136 if et == nil {
137 return nil
138 }
139
140 tb.SetSliceBase()
141 tb.Table = table.NewIndexView(et)
142 tb.This.(core.Lister).UpdateSliceSize()
143 tb.Update()
144 return tb
145}
146
147// AsyncUpdateTable updates the display for asynchronous updating from
148// other goroutines. Also updates indexview (calling Sequential).

Callers 1

InitMethod · 0.45

Implementers 1

_cogentcore_org_core_plot_plots_Tableyaegicore/symbols/cogentcore_org-core-

Calls 4

NewIndexViewFunction · 0.92
SetSliceBaseMethod · 0.80
UpdateSliceSizeMethod · 0.65
UpdateMethod · 0.65

Tested by

no test coverage detected