Fyne API "binding.ExternalString"

binding.ExternalString


import "fyne.io/fyne/v2/data/binding"

Usage

type ExternalString

type ExternalString interface {
	String
	Reload() error
}

ExternalString supports binding a string value to an external value.

Since: 2.0

func BindString

func BindString(v *string) ExternalString

BindString returns a new bindable value that controls the contents of the provided string variable. If your code changes the content of the variable this refers to you should call Reload() to inform the bindings.

Since: 2.0