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.DataItem"
binding.DataItem
import "fyne.io/fyne/v2/data/binding"
Usage
type DataItem
type DataItem interface {
// AddListener attaches a new change listener to this DataItem.
// Listeners are called each time the data inside this DataItem changes.
// Additionally the listener will be triggered upon successful connection to get the current value.
AddListener(DataListener)
// RemoveListener will detach the specified change listener from the DataItem.
// Disconnected listener will no longer be triggered when changes occur.
RemoveListener(DataListener)
}
DataItem is the base interface for all bindable data items.
Since:
2.0