Fyne API "binding.IntTree"

binding.IntTree


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

Usage

type IntTree

type IntTree interface {
	DataTree

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

IntTree supports binding a tree of int values.

Since: 2.4

func NewIntTree

func NewIntTree() IntTree

NewIntTree returns a bindable tree of int values.

Since: 2.4