widget.NewSelect() Api enhancement request #3667
-
Checklist
Is your feature request related to a problem?When selecting the right selection box, refresh the contents of the other selection box according to the contents of the selection box Is it possible to construct a solution with the existing API?No response Describe the solution you'd like to see.package main import "fyne.io/fyne/v2/widget" type App struct { func (MyApp *App) ReturnKeyStringList() []string { func (MyApp *App) ReturnThinkPHPStringList() []string { func (MyApp *App) ReturnWordPressStringList() []string { func main() {
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This shouldn’t require any API additions as far as I am aware. All you need to do is set the |
Beta Was this translation helpful? Give feedback.
This shouldn’t require any API additions as far as I am aware. All you need to do is set the
OnChanged
method of one widget and make sure that it sets the contents of the other one. Just make sure that you don’t have an infinite loop of them updating each other.