Skip to content

Commit

Permalink
Demo disabled form item in fyne_demo
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jul 26, 2021
1 parent a6357cd commit 65a9a1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/fyne_demo/tutorials/widget.go
Expand Up @@ -265,6 +265,9 @@ func makeFormTab(_ fyne.Window) fyne.CanvasObject {
password := widget.NewPasswordEntry()
password.SetPlaceHolder("Password")

disabled := widget.NewRadioGroup([]string{"Option 1", "Option 2"}, func(string) {})
disabled.Horizontal = true
disabled.Disable()
largeText := widget.NewMultiLineEntry()

form := &widget.Form{
Expand All @@ -284,6 +287,7 @@ func makeFormTab(_ fyne.Window) fyne.CanvasObject {
},
}
form.Append("Password", password)
form.Append("Disabled", disabled)
form.Append("Message", largeText)
return form
}
Expand Down

0 comments on commit 65a9a1b

Please sign in to comment.