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"`
|
2023-06-02 09:17:22 +00:00
|
|
|
|
|
|
|
tags1Slice []string `vugu:"data"`
|
2023-05-27 11:37:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (c *PageInput) Init(ctx vugu.InitCtx) {
|
|
|
|
c.dropdown1Slice = []string{"This", "is", "a", "list", "of", "things!"}
|
2023-06-02 09:17:22 +00:00
|
|
|
c.tags1Slice = []string{"some", "tags"}
|
2023-05-25 13:59:13 +00:00
|
|
|
}
|