mirror of https://github.com/perkeep/perkeep.git
48 lines
803 B
Go
48 lines
803 B
Go
// Code generated by reactGen. DO NOT EDIT.
|
|
|
|
package react
|
|
|
|
// UlProps defines the properties for the <ul> element
|
|
type UlProps struct {
|
|
ClassName string
|
|
DangerouslySetInnerHTML *DangerousInnerHTML
|
|
ID string
|
|
Key string
|
|
|
|
OnChange
|
|
OnClick
|
|
|
|
Role string
|
|
Style *CSS
|
|
}
|
|
|
|
func (u *UlProps) assign(v *_UlProps) {
|
|
|
|
v.ClassName = u.ClassName
|
|
|
|
v.DangerouslySetInnerHTML = u.DangerouslySetInnerHTML
|
|
|
|
if u.ID != "" {
|
|
v.ID = u.ID
|
|
}
|
|
|
|
if u.Key != "" {
|
|
v.Key = u.Key
|
|
}
|
|
|
|
if u.OnChange != nil {
|
|
v.o.Set("onChange", u.OnChange.OnChange)
|
|
}
|
|
|
|
if u.OnClick != nil {
|
|
v.o.Set("onClick", u.OnClick.OnClick)
|
|
}
|
|
|
|
v.Role = u.Role
|
|
|
|
// TODO: until we have a resolution on
|
|
// https://github.com/gopherjs/gopherjs/issues/236
|
|
v.Style = u.Style.hack()
|
|
|
|
}
|