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

Usage

type List

  type List[T any] interface {
	DataList

	Append(value T) error
	Get() ([]T, error)
	GetValue(index int) (T, error)
	Prepend(value T) error
	Remove(value T) error
	Set(list []T) error
	SetValue(index int, value T) error
}
  

List supports binding a list of values with type T.

Since: 2.7

func NewBoolList

  func NewBoolList() List[bool]
  

NewBoolList returns a bindable list of bool values.

Since: 2.0

func NewBytesList

  func NewBytesList() List[[]byte]
  

NewBytesList returns a bindable list of []byte values.

Since: 2.2

func NewFloatList

  func NewFloatList() List[float64]
  

NewFloatList returns a bindable list of float64 values.

Since: 2.0

func NewIntList

  func NewIntList() List[int]
  

NewIntList returns a bindable list of int values.

Since: 2.0

func NewList

  func NewList[T any](comparator func(T, T) bool) List[T]
  

NewList returns a bindable list of values with type T.

Since: 2.7

func NewRuneList

  func NewRuneList() List[rune]
  

NewRuneList returns a bindable list of rune values.

Since: 2.0

func NewStringList

  func NewStringList() List[string]
  

NewStringList returns a bindable list of string values.

Since: 2.0

func NewURIList

  func NewURIList() List[fyne.URI]
  

NewURIList returns a bindable list of fyne.URI values.

Since: 2.1

func NewUntypedList

  func NewUntypedList() List[any]
  

NewUntypedList returns a bindable list of any values.

Since: 2.1