Fyne API "binding.ExternalBoolTree"


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


type ExternalBoolTree

type ExternalBoolTree interface {

	Reload() error

ExternalBoolTree supports binding a tree of bool values from an external variable.

Since: 2.4

func BindBoolTree

func BindBoolTree(ids *map[string][]string, v *map[string]bool) ExternalBoolTree

BindBoolTree returns a bound tree of bool 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