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

48 lines
799 B
Go

// Code generated by reactGen. DO NOT EDIT.
package react
// DivProps are the props for a <div> component
type DivProps struct {
ClassName string
DangerouslySetInnerHTML *DangerousInnerHTML
ID string
Key string
OnChange
OnClick
Role string
Style *CSS
}
func (d *DivProps) assign(v *_DivProps) {
v.ClassName = d.ClassName
v.DangerouslySetInnerHTML = d.DangerouslySetInnerHTML
if d.ID != "" {
v.ID = d.ID
}
if d.Key != "" {
v.Key = d.Key
}
if d.OnChange != nil {
v.o.Set("onChange", d.OnChange.OnChange)
}
if d.OnClick != nil {
v.o.Set("onClick", d.OnClick.OnClick)
}
v.Role = d.Role
// TODO: until we have a resolution on
// https://github.com/gopherjs/gopherjs/issues/236
v.Style = d.Style.hack()
}