mirror of
https://github.com/astaxie/beego.git
synced 2024-12-24 01:00:50 +00:00
16 lines
324 B
Go
16 lines
324 B
Go
|
package elements
|
||
|
|
||
|
type Button struct {
|
||
|
Element
|
||
|
}
|
||
|
|
||
|
func NewButton() *Button {
|
||
|
b := &Button{}
|
||
|
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", "button")
|
||
|
return b
|
||
|
}
|