Upgrade to v2.5
Fyne API v2.5
app
canvas
container
data/binding
package binding
Bool
BoolList
BoolTree
Bytes
BytesList
BytesTree
DataItem
DataList
DataListener
DataMap
DataTree
ExternalBool
ExternalBoolList
ExternalBoolTree
ExternalBytes
ExternalBytesList
ExternalBytesTree
ExternalFloat
ExternalFloatList
ExternalFloatTree
ExternalInt
ExternalIntList
ExternalIntTree
ExternalRune
ExternalRuneList
ExternalRuneTree
ExternalString
ExternalStringList
ExternalStringTree
ExternalUntyped
ExternalUntypedList
ExternalUntypedMap
ExternalUntypedTree
ExternalURI
ExternalURIList
ExternalURITree
Float
FloatList
FloatTree
Int
IntList
IntTree
Rune
RuneList
RuneTree
String
StringList
StringTree
Struct
Untyped
UntypedList
UntypedMap
UntypedTree
URI
URIList
URITree
data/validation
dialog
driver
driver/desktop
driver/mobile
driver/software
lang
layout
storage
storage/repository
test
theme
widget
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
Remove(id string) 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