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

48 lines
791 B
Go

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