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

Method TensorDisplayAction

tensor/tensorcore/table.go:471–481  ·  view source on GitHub ↗

TensorDisplayAction allows user to select tensor display options for column pass -1 for global params for the entire table

(fldIndex int)

Source from the content-addressed store, hash-verified

469// TensorDisplayAction allows user to select tensor display options for column
470// pass -1 for global params for the entire table
471func (tb *Table) TensorDisplayAction(fldIndex int) {
472 ctd := &tb.TensorDisplay
473 if fldIndex >= 0 {
474 ctd = tb.SetColumnTensorDisplay(fldIndex)
475 }
476 d := core.NewBody().AddTitle("Tensor grid display options")
477 core.NewForm(d).SetStruct(ctd)
478 d.RunFullDialog(tb)
479 // tv.UpdateSliceGrid()
480 tb.NeedsRender()
481}
482
483func (tb *Table) HasStyler() bool { return false }
484

Callers

nothing calls this directly

Implementers 1

_cogentcore_org_core_plot_plots_Tableyaegicore/symbols/cogentcore_org-core-

Calls 7

NewBodyFunction · 0.92
NewFormFunction · 0.92
AddTitleMethod · 0.80
RunFullDialogMethod · 0.80
NeedsRenderMethod · 0.80
SetStructMethod · 0.45

Tested by

no test coverage detected