Fyne API "binding.Struct"
binding.Struct
import "fyne.io/fyne/v2/data/binding"
Usage
type Struct
type Struct interface {
DataMap
GetValue(string) (interface{}, error)
SetValue(string, interface{}) error
Reload() error
}
Struct is the base interface for a bound struct type.
Since:
2.0
func BindStruct
func BindStruct(i interface{}) Struct
BindStruct creates a new map binding of string to interface{} using the struct passed as data. The key for each item is a string representation of each exported field with the value set as an interface{}. Only exported fields are included.
Since:
2.0