Documentation ¶
Index ¶
- type ImmSelectEntry
- type Label
- type LabelEntries
- func (m *LabelEntries) Append(v ...Label) *LabelEntries
- func (m *LabelEntries) AsImmutable(v *LabelEntries) *LabelEntries
- func (m *LabelEntries) AsMutable() *LabelEntries
- func (m *LabelEntries) Get(i int) Label
- func (s *LabelEntries) IsDeeplyNonMutable(seen map[interface{}]bool) bool
- func (m *LabelEntries) Len() int
- func (m *LabelEntries) Mutable() bool
- func (m *LabelEntries) Range() []Label
- func (m *LabelEntries) Set(i int, v Label) *LabelEntries
- func (m *LabelEntries) WithImmutable(f func(mi *LabelEntries)) *LabelEntries
- func (m *LabelEntries) WithMutable(f func(mi *LabelEntries)) *LabelEntries
- type OnSelect
- type SelectDef
- func (p SelectDef) ComponentWillMount()
- func (p SelectDef) ComponentWillReceiveProps(props SelectProps)
- func (s SelectDef) ComponentWillReceivePropsIntf(val interface{})
- func (s SelectDef) GetInitialStateIntf() react.State
- func (s SelectDef) Props() SelectProps
- func (p SelectDef) Render() r.Element
- func (s SelectDef) RendersElement() react.Element
- func (s SelectDef) SetState(state SelectState)
- func (s SelectDef) State() SelectState
- type SelectElem
- type SelectProps
- type SelectState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImmSelectEntry ¶
type ImmSelectEntry interface {
Range() []Label
}
type LabelEntries ¶
type LabelEntries struct {
// contains filtered or unexported fields
}
LabelEntries is an immutable type and has the following template:
[]Label
func NewLabelEntries ¶
func NewLabelEntries(s ...Label) *LabelEntries
func NewLabelEntriesLen ¶
func NewLabelEntriesLen(l int) *LabelEntries
func (*LabelEntries) Append ¶
func (m *LabelEntries) Append(v ...Label) *LabelEntries
func (*LabelEntries) AsImmutable ¶
func (m *LabelEntries) AsImmutable(v *LabelEntries) *LabelEntries
func (*LabelEntries) AsMutable ¶
func (m *LabelEntries) AsMutable() *LabelEntries
func (*LabelEntries) Get ¶
func (m *LabelEntries) Get(i int) Label
func (*LabelEntries) IsDeeplyNonMutable ¶
func (s *LabelEntries) IsDeeplyNonMutable(seen map[interface{}]bool) bool
func (*LabelEntries) Len ¶
func (m *LabelEntries) Len() int
func (*LabelEntries) Mutable ¶
func (m *LabelEntries) Mutable() bool
func (*LabelEntries) Range ¶
func (m *LabelEntries) Range() []Label
func (*LabelEntries) Set ¶
func (m *LabelEntries) Set(i int, v Label) *LabelEntries
func (*LabelEntries) WithImmutable ¶
func (m *LabelEntries) WithImmutable(f func(mi *LabelEntries)) *LabelEntries
func (*LabelEntries) WithMutable ¶
func (m *LabelEntries) WithMutable(f func(mi *LabelEntries)) *LabelEntries
type SelectDef ¶
type SelectDef struct {
r.ComponentDef
}
SelectDef is a wrapper around the myitcv.io/react.SelectDef component. It allows any value implementing the Label interface to be selected
func (SelectDef) ComponentWillMount ¶
func (p SelectDef) ComponentWillMount()
func (SelectDef) ComponentWillReceiveProps ¶
func (p SelectDef) ComponentWillReceiveProps(props SelectProps)
func (SelectDef) ComponentWillReceivePropsIntf ¶
func (s SelectDef) ComponentWillReceivePropsIntf(val interface{})
ComponentWillReceivePropsIntf is an auto-generated proxy to ComponentWillReceiveProps
func (SelectDef) GetInitialStateIntf ¶
GetInitialStateIntf is an auto-generated proxy to GetInitialState
func (SelectDef) Props ¶
func (s SelectDef) Props() SelectProps
Props is an auto-generated proxy to the current props of Select
func (SelectDef) RendersElement ¶
func (SelectDef) SetState ¶
func (s SelectDef) SetState(state SelectState)
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 (SelectDef) State ¶
func (s SelectDef) State() SelectState
State is an auto-generated proxy to return the current state in use for the render of the Select component
type SelectElem ¶
func Select ¶
func Select(props SelectProps) *SelectElem
Select creates a new instance of the SelectDef component with the provided props
type SelectProps ¶
type SelectProps struct { Entry Label Entries ImmSelectEntry OnSelect }
func (SelectProps) EqualsIntf ¶
func (s SelectProps) EqualsIntf(val react.Props) bool
func (SelectProps) IsProps ¶
func (s SelectProps) IsProps()
IsProps is an auto-generated definition so that SelectProps implements the myitcv.io/react.Props interface.
type SelectState ¶
type SelectState struct {
// contains filtered or unexported fields
}
func (SelectState) EqualsIntf ¶
func (s SelectState) EqualsIntf(val react.State) bool
func (SelectState) IsState ¶
func (s SelectState) IsState()
IsState is an auto-generated definition so that SelectState implements the myitcv.io/react.State interface.