Fyne API "binding.StringTree"

binding.StringTree


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

Usage

type StringTree

type StringTree interface {
	DataTree

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

StringTree supports binding a tree of string values.

Since: 2.4

func NewStringTree

func NewStringTree() StringTree

NewStringTree returns a bindable tree of string values.

Since: 2.4