1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-18 02:30:54 +00:00
Beego/forms/elements/submit.go
2014-07-03 23:40:21 +08:00

16 lines
324 B
Go

package elements
type Submit struct {
Element
}
func NewSubmit() *Submit {
b := &Submit{}
b.options = make(map[string]interface{})
b.attributes = make(map[string]interface{})
b.labelAttributes = make(map[string]interface{})
b.labelOptions = make(map[string]interface{})
b.SetAttribute("type", "submit")
return b
}