Skip to main content
Version: 1.x

Class: Input

molecule.component.Input

Hierarchy

Constructors

constructor

new Input(props)

Parameters

NameType
propsIInputProps

Overrides

React.Component<IInputProps, InputState\>.constructor

Defined in

components/input/input.tsx:80

Properties

input

input: null | HTMLTextAreaElement | HTMLInputElement = null

Defined in

components/input/input.tsx:78


TextArea

Static TextArea: (__namedParameters: ITextAreaProps) => Element

Type declaration

▸ (__namedParameters): Element

Parameters
NameType
__namedParametersITextAreaProps
Returns

Element

Defined in

components/input/input.tsx:72


defaultProps

Static defaultProps: Object

Type declaration

NameType
typestring

Defined in

components/input/input.tsx:74

Methods

handleChange

handleChange(e): void

Parameters

NameType
eChangeEvent<HTMLInputElement>

Returns

void

Defined in

components/input/input.tsx:115


handleKeyDown

handleKeyDown(e): void

Parameters

NameType
eKeyboardEvent<HTMLInputElement>

Returns

void

Defined in

components/input/input.tsx:123


render

render(): Element

Returns

Element

Overrides

React.Component.render

Defined in

components/input/input.tsx:132


saveInput

saveInput(input): void

Parameters

NameType
inputHTMLInputElement

Returns

void

Defined in

components/input/input.tsx:105


setValue

setValue(value): void

Parameters

NameType
valuestring

Returns

void

Defined in

components/input/input.tsx:109


getDerivedStateFromProps

Static getDerivedStateFromProps(nextProps, __namedParameters): Partial<InputState>

Parameters

NameType
nextPropsIInputProps
__namedParametersInputState

Returns

Partial<InputState>

Defined in

components/input/input.tsx:93