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

Method PasteAssign

tensor/tensorcore/table.go:705–712  ·  view source on GitHub ↗

PasteAssign assigns mime data (only the first one!) to this idx

(md mimedata.Mimes, idx int)

Source from the content-addressed store, hash-verified

703
704// PasteAssign assigns mime data (only the first one!) to this idx
705func (tb *Table) PasteAssign(md mimedata.Mimes, idx int) {
706 recs := tb.FromMimeData(md)
707 if len(recs) == 0 {
708 return
709 }
710 tb.Table.Table.ReadCSVRow(recs[1], tb.Table.Indexes[idx])
711 tb.UpdateChange()
712}
713
714// PasteAtIndex inserts object(s) from mime data at (before) given slice index
715// adds to end of table

Callers

nothing calls this directly

Implementers 1

_cogentcore_org_core_plot_plots_Tableyaegicore/symbols/cogentcore_org-core-

Calls 3

FromMimeDataMethod · 0.95
ReadCSVRowMethod · 0.80
UpdateChangeMethod · 0.80

Tested by

no test coverage detected