Last active
March 15, 2022 12:23
-
-
Save jfjensen/cba7e06333a7002863b04f853479c11d to your computer and use it in GitHub Desktop.
Creating a widget to list our data items
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list := widget.NewListWithData(data, | |
func() fyne.CanvasObject { | |
return widget.NewLabel("template") | |
}, | |
func(i binding.DataItem, o fyne.CanvasObject) { | |
o.(*widget.Label).Bind(i.(binding.String)) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment