Fyne API "binding.ExternalList"

binding.ExternalList


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

Usage

type ExternalList

type ExternalList[T any] interface {
	List[T]

	Reload() error
}

ExternalList supports binding a list of values, with type T, from an external variable.

Since: 2.7

func BindBoolList

func BindBoolList(v *[]bool) ExternalList[bool]

BindBoolList returns a bound list of bool 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

func BindBytesList

func BindBytesList(v *[][]byte) ExternalList[[]byte]

BindBytesList returns a bound list of []byte 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.2

func BindFloatList

func BindFloatList(v *[]float64) ExternalList[float64]

BindFloatList returns a bound list of float64 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

func BindIntList

func BindIntList(v *[]int) ExternalList[int]

BindIntList returns a bound list of int 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

func BindList

func BindList[T any](v *[]T, comparator func(T, T) bool) ExternalList[T]

BindList returns a bound list of values with type T, 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.7

func BindRuneList

func BindRuneList(v *[]rune) ExternalList[rune]

BindRuneList returns a bound list of rune 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

func BindStringList

func BindStringList(v *[]string) ExternalList[string]

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

func BindURIList

func BindURIList(v *[]fyne.URI) ExternalList[fyne.URI]

BindURIList returns a bound list of fyne.URI 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.1

func BindUntypedList

func BindUntypedList(v *[]any) ExternalList[any]

BindUntypedList returns a bound list of any 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.1