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

Method SetTable

plot/plotcore/ploteditor.go:145–149  ·  view source on GitHub ↗

SetTable sets the table to view and does Update to update the Column list, which will also trigger a Layout and updating of the plot on next render pass. This is safe to call from a different goroutine.

(tab *table.Table)

Source from the content-addressed store, hash-verified

143// and updating of the plot on next render pass.
144// This is safe to call from a different goroutine.
145func (pl *PlotEditor) SetTable(tab *table.Table) *PlotEditor {
146 pl.table = table.NewIndexView(tab)
147 pl.Update()
148 return pl
149}
150
151// SetSlice sets the table to a [table.NewSliceTable]
152// from the given slice.

Callers 4

SetSliceMethod · 0.95
TestTablePlotEditorFunction · 0.95
mainFunction · 0.95
MakeToolbarMethod · 0.45

Calls 2

NewIndexViewFunction · 0.92
UpdateMethod · 0.65

Tested by 1

TestTablePlotEditorFunction · 0.76