D3vugu-components/page-input.go

34 lines
845 B
Go
Raw Normal View History

package main
import "github.com/vugu/vugu"
type PageInput struct {
button1Counter int `vugu:"data"`
button4Bool bool `vugu:"data"`
radioButton1 string `vugu:"data"`
checkBox1 bool `vugu:"data"`
checkBox2 bool `vugu:"data"`
inputField1String string `vugu:"data"`
inputField2Int int `vugu:"data"`
inputField3Float float64 `vugu:"data"`
inputField4String string `vugu:"data"`
inputField5String string `vugu:"data"`
inputField5Bool bool `vugu:"data"`
inputField6Bool bool `vugu:"data"`
dropdown1Slice []string `vugu:"data"`
dropdown1Index int `vugu:"data"`
tags1Slice []string `vugu:"data"`
}
func (c *PageInput) Init(ctx vugu.InitCtx) {
c.radioButton1 = "B"
c.checkBox2 = true
c.dropdown1Slice = []string{"This", "is", "a", "list", "of", "things!"}
c.tags1Slice = []string{"some", "tags"}
}