perkeep/vendor/myitcv.io/react/gen_TextAreaProps_reactGen.go

65 lines
1.1 KiB
Go

// Code generated by reactGen. DO NOT EDIT.
package react
// TextAreaProps defines the properties for the <textarea> element
type TextAreaProps struct {
ClassName string
Cols uint
DangerouslySetInnerHTML *DangerousInnerHTML
DefaultValue string
ID string
Key string
OnChange
OnClick
Placeholder string
Role string
Rows uint
Style *CSS
Value string
}
func (t *TextAreaProps) assign(v *_TextAreaProps) {
v.ClassName = t.ClassName
v.Cols = t.Cols
v.DangerouslySetInnerHTML = t.DangerouslySetInnerHTML
if t.DefaultValue != "" {
v.DefaultValue = t.DefaultValue
}
if t.ID != "" {
v.ID = t.ID
}
if t.Key != "" {
v.Key = t.Key
}
if t.OnChange != nil {
v.o.Set("onChange", t.OnChange.OnChange)
}
if t.OnClick != nil {
v.o.Set("onClick", t.OnClick.OnClick)
}
v.Placeholder = t.Placeholder
v.Role = t.Role
v.Rows = t.Rows
// TODO: until we have a resolution on
// https://github.com/gopherjs/gopherjs/issues/236
v.Style = t.Style.hack()
v.Value = t.Value
}