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

Method Text

core/textfield.go:448–451  ·  view source on GitHub ↗

Text returns the current text of the text field. It applies any unapplied changes first, and sends an [events.Change] event if applicable. This is the main end-user method to get the current value of the text field.

()

Source from the content-addressed store, hash-verified

446// first, and sends an [events.Change] event if applicable. This is the main end-user
447// method to get the current value of the text field.
448func (tf *TextField) Text() string {
449 tf.editDone()
450 return tf.text
451}
452
453// SetText sets the text of the text field and reverts any current edits
454// to reflect this new text.

Callers 15

TestTextFieldChangeFunction · 0.95
TestTextFieldInputFunction · 0.95
copyMethod · 0.95
makeItemsMenuMethod · 0.95
dialogsFunction · 0.95
makeSelectedRowMethod · 0.45
setSelectedFileMethod · 0.45
TestTextFieldClearClickFunction · 0.45
pasteMethod · 0.45
InitMethod · 0.45

Calls 1

editDoneMethod · 0.95

Tested by 5

TestTextFieldChangeFunction · 0.76
TestTextFieldInputFunction · 0.76
TestTextFieldClearClickFunction · 0.36