Fyne API "binding.ExternalItem"
binding.ExternalItem
import "fyne.io/fyne/v2/data/binding"
Usage
type ExternalItem
type ExternalItem[T any] interface {
Item[T]
Reload() error
}
ExternalItem supports binding any external value of type T.
Since:
2.6
func BindItem
func BindItem[T any](val *T, comparator func(T, T) bool) ExternalItem[T]
BindItem returns a new bindable value that controls the contents of the provided variable of type T. If your code changes the content of the variable this refers to you should call Reload() to inform the bindings.
Since:
2.6