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

Method SelectedColumnStrings

tensor/tensorcore/table.go:613–625  ·  view source on GitHub ↗

SelectedColumnStrings returns the string values of given column name.

(colName string)

Source from the content-addressed store, hash-verified

611
612// SelectedColumnStrings returns the string values of given column name.
613func (tb *Table) SelectedColumnStrings(colName string) []string {
614 dt := tb.Table.Table
615 jis := tb.SelectedIndexesList(false)
616 if len(jis) == 0 || dt == nil {
617 return nil
618 }
619 var s []string
620 for _, i := range jis {
621 v := dt.StringValue(colName, i)
622 s = append(s, v)
623 }
624 return s
625}
626
627//////////////////////////////////////////////////////////////////////////////
628// Copy / Cut / Paste

Callers

nothing calls this directly

Implementers 1

_cogentcore_org_core_plot_plots_Tableyaegicore/symbols/cogentcore_org-core-

Calls 2

SelectedIndexesListMethod · 0.80
StringValueMethod · 0.65

Tested by

no test coverage detected