Fyne API "binding.BoolTree"

binding.BoolTree


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

Usage

type BoolTree

type BoolTree interface {
	DataTree

	Append(parent, id string, value bool) error
	Get() (map[string][]string, map[string]bool, error)
	GetValue(id string) (bool, error)
	Prepend(parent, id string, value bool) error
	Set(ids map[string][]string, values map[string]bool) error
	SetValue(id string, value bool) error
}

BoolTree supports binding a tree of bool values.

Since: 2.4

func NewBoolTree

func NewBoolTree() BoolTree

NewBoolTree returns a bindable tree of bool values.

Since: 2.4