Class: Input
Hierarchy
Component
<IInputProps
,InputState
>↳
Input
Constructors
constructor
• new Input(props
)
Parameters
Name | Type |
---|---|
props | IInputProps |
Overrides
React.Component<IInputProps, InputState\>.constructor
Defined in
Properties
input
• input: null
| HTMLTextAreaElement
| HTMLInputElement
= null
Defined in
TextArea
▪ Static
TextArea: (__namedParameters
: ITextAreaProps
) => Element
Type declaration
▸ (__namedParameters
): Element
Parameters
Name | Type |
---|---|
__namedParameters | ITextAreaProps |
Returns
Element
Defined in
defaultProps
▪ Static
defaultProps: Object
Type declaration
Name | Type |
---|---|
type | string |
Defined in
Methods
handleChange
▸ handleChange(e
): void
Parameters
Name | Type |
---|---|
e | ChangeEvent <HTMLInputElement > |
Returns
void
Defined in
components/input/input.tsx:115
handleKeyDown
▸ handleKeyDown(e
): void
Parameters
Name | Type |
---|---|
e | KeyboardEvent <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
Name | Type |
---|---|
input | HTMLInputElement |
Returns
void
Defined in
components/input/input.tsx:105
setValue
▸ setValue(value
): void
Parameters
Name | Type |
---|---|
value | string |
Returns
void
Defined in
components/input/input.tsx:109
getDerivedStateFromProps
▸ Static
getDerivedStateFromProps(nextProps
, __namedParameters
): Partial
<InputState
>
Parameters
Name | Type |
---|---|
nextProps | IInputProps |
__namedParameters | InputState |
Returns
Partial
<InputState
>