imm

package
v0.0.0-...-389821e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2018 License: BSD-3-Clause Imports: 5 Imported by: 0

README

** myitcv.io/react/components/imm ** has moved

The repository hosting myitcv.io/react/components/imm has changed.

myitcv.io/react/components/imm can now be found at:

https://github.com/myitcv/x/tree/master/react/components/imm

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImmSelectEntry

type ImmSelectEntry interface {
	Range() []Label
}

type Label

type Label interface {
	Label() string
}

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 OnSelect

type OnSelect interface {
	OnSelect(i Label)
}

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

func (s SelectDef) GetInitialStateIntf() react.State

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) Render

func (p SelectDef) Render() r.Element

func (SelectDef) RendersElement

func (s SelectDef) RendersElement() react.Element

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

type SelectElem struct {
	react.Element
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL