Fyne API "binding.ExternalFloatTree"

binding.ExternalFloatTree


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

Usage

type ExternalFloatTree

type ExternalFloatTree interface {
	FloatTree

	Reload() error
}

ExternalFloatTree supports binding a tree of float64 values from an external variable.

Since: 2.4

func BindFloatTree

func BindFloatTree(ids *map[string][]string, v *map[string]float64) ExternalFloatTree

BindFloatTree returns a bound tree of float64 values, based on the contents of the passed values. The ids map specifies how each item relates to its parent (with id “”), with the values being in the v map. If your code changes the content of the maps this refers to you should call Reload() to inform the bindings.

Since: 2.4