This repository has been archived by the owner on Aug 27, 2018. It is now read-only.
/
gen_Select_reactGen.go
74 lines (57 loc) · 2 KB
/
gen_Select_reactGen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// Code generated by reactGen. DO NOT EDIT.
package imm
import "myitcv.io/react"
type SelectElem struct {
react.Element
}
func buildSelect(cd react.ComponentDef) react.Component {
return SelectDef{ComponentDef: cd}
}
func buildSelectElem(props SelectProps, children ...react.Element) *SelectElem {
return &SelectElem{
Element: react.CreateElement(buildSelect, props, children...),
}
}
func (s SelectDef) RendersElement() react.Element {
return s.Render()
}
// SetState is an auto-generated proxy proxy to update the state for the
// Select component. SetState does not immediately mutate s.State()
// but creates a pending state transition.
func (s SelectDef) SetState(state SelectState) {
s.ComponentDef.SetState(state)
}
// State is an auto-generated proxy to return the current state in use for the
// render of the Select component
func (s SelectDef) State() SelectState {
return s.ComponentDef.State().(SelectState)
}
// IsState is an auto-generated definition so that SelectState implements
// the myitcv.io/react.State interface.
func (s SelectState) IsState() {}
var _ react.State = SelectState{}
// GetInitialStateIntf is an auto-generated proxy to GetInitialState
func (s SelectDef) GetInitialStateIntf() react.State {
return SelectState{}
}
func (s SelectState) EqualsIntf(val react.State) bool {
return s == val.(SelectState)
}
// IsProps is an auto-generated definition so that SelectProps implements
// the myitcv.io/react.Props interface.
func (s SelectProps) IsProps() {}
// Props is an auto-generated proxy to the current props of Select
func (s SelectDef) Props() SelectProps {
uprops := s.ComponentDef.Props()
return uprops.(SelectProps)
}
// ComponentWillReceivePropsIntf is an auto-generated proxy to
// ComponentWillReceiveProps
func (s SelectDef) ComponentWillReceivePropsIntf(val interface{}) {
ourProps := val.(SelectProps)
s.ComponentWillReceiveProps(ourProps)
}
func (s SelectProps) EqualsIntf(val react.Props) bool {
return s == val.(SelectProps)
}
var _ react.Props = SelectProps{}