Fyne API "binding.ExternalStringList"

binding.ExternalStringList


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

Usage

type ExternalStringList

type ExternalStringList interface {
	StringList

	Reload() error
}

ExternalStringList supports binding a list of string values from an external variable.

Since: 2.0

func BindStringList

func BindStringList(v *[]string) ExternalStringList

BindStringList returns a bound list of string values, based on the contents of the passed slice. If your code changes the content of the slice this refers to you should call Reload() to inform the bindings.

Since: 2.0