2023-05-25 13:59:13 +00:00
|
|
|
package main
|
|
|
|
|
2023-05-27 11:37:40 +00:00
|
|
|
import "github.com/vugu/vugu"
|
|
|
|
|
2023-05-25 13:59:13 +00:00
|
|
|
type PageInput struct {
|
2023-05-25 14:37:46 +00:00
|
|
|
button1Counter int `vugu:"data"`
|
|
|
|
button4Bool bool `vugu:"data"`
|
2023-05-25 13:59:13 +00:00
|
|
|
|
2023-05-25 15:44:44 +00:00
|
|
|
inputField1String string `vugu:"data"`
|
|
|
|
inputField2Int int `vugu:"data"`
|
|
|
|
inputField3Float float64 `vugu:"data"`
|
|
|
|
inputField4String string `vugu:"data"`
|
|
|
|
inputField5String string `vugu:"data"`
|
|
|
|
inputField5Bool bool `vugu:"data"`
|
2023-05-27 11:37:40 +00:00
|
|
|
|
|
|
|
dropdown1Slice []string `vugu:"data"`
|
|
|
|
dropdown1Index int `vugu:"data"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *PageInput) Init(ctx vugu.InitCtx) {
|
|
|
|
c.dropdown1Slice = []string{"This", "is", "a", "list", "of", "things!"}
|
2023-05-25 13:59:13 +00:00
|
|
|
}
|