1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-24 01:30:50 +00:00
Beego/forms/elements/textarea.go

16 lines
334 B
Go
Raw Normal View History

2014-07-03 15:40:21 +00:00
package elements
type Textarea struct {
Element
}
func NewTextarea() *Textarea {
b := &Textarea{}
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", "textarea")
return b
}