MCPcopy
hub / github.com/g3n/engine / SetText

Method SetText

gui/edit.go:83–89  ·  view source on GitHub ↗

SetText sets this edit text

(text string)

Source from the content-addressed store, hash-verified

81
82// SetText sets this edit text
83func (ed *Edit) SetText(text string) *Edit {
84
85 // Remove new lines from text
86 ed.text = strings.Replace(text, "\n", "", -1)
87 ed.update()
88 return ed
89}
90
91// Text returns the current edited text
92func (ed *Edit) Text() string {

Callers 13

NewDropDownFunction · 0.45
applyStyleMethod · 0.45
SetTitleMethod · 0.45
SetStatusTextMethod · 0.45
setCellMethod · 0.45
onRiconMethod · 0.45
recalcRowMethod · 0.45
SetTitleMethod · 0.45
updateLabelsXMethod · 0.45
updateLabelsYMethod · 0.45
applyStyleMethod · 0.45
updateMethod · 0.45

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected