mirror of https://github.com/perkeep/perkeep.git
51 lines
848 B
Go
51 lines
848 B
Go
// Code generated by reactGen. DO NOT EDIT.
|
|
|
|
package react
|
|
|
|
// SelectProps are the props for a <select> component
|
|
type SelectProps struct {
|
|
ClassName string
|
|
DangerouslySetInnerHTML *DangerousInnerHTML
|
|
ID string
|
|
Key string
|
|
|
|
OnChange
|
|
OnClick
|
|
|
|
Role string
|
|
Style *CSS
|
|
Value string
|
|
}
|
|
|
|
func (s *SelectProps) assign(v *_SelectProps) {
|
|
|
|
v.ClassName = s.ClassName
|
|
|
|
v.DangerouslySetInnerHTML = s.DangerouslySetInnerHTML
|
|
|
|
if s.ID != "" {
|
|
v.ID = s.ID
|
|
}
|
|
|
|
if s.Key != "" {
|
|
v.Key = s.Key
|
|
}
|
|
|
|
if s.OnChange != nil {
|
|
v.o.Set("onChange", s.OnChange.OnChange)
|
|
}
|
|
|
|
if s.OnClick != nil {
|
|
v.o.Set("onClick", s.OnClick.OnClick)
|
|
}
|
|
|
|
v.Role = s.Role
|
|
|
|
// TODO: until we have a resolution on
|
|
// https://github.com/gopherjs/gopherjs/issues/236
|
|
v.Style = s.Style.hack()
|
|
|
|
v.Value = s.Value
|
|
|
|
}
|