Class: Input

FormComponents. Input


new Input()

Form Input Component
Responsible for handling simple keyboard inputs.

Properties:
Name Type Argument Description
fieldKey String
limit Number <optional>
label String <optional>
placeholder String <optional>
helpText String <optional>
type String
disabled Boolean <optional>
onFocus function <optional>
onBlur function <optional>
min Number <optional>
max Number <optional>
maxLength Number <optional>
autoFocus Number <optional>
value String <optional>

A custom value to display if we don't want to rely on fieldValue

changeCallback function <optional>
Source:
See:

Methods


<static> componentWillReceiveProps()

Set fieldValue through props based on attached resource.

Parameters:
Type Description
Object
Source:
Returns:
Type
null

<static> getInitialState()

Gets the initial state of the component

Source:
Returns:
Type
Object

<static> handleFocus(event)

When the field is in focus, show the text area character count.

Parameters:
Name Type Description
event
Source:
Returns:
Type
null

<static> handleInput()

Handles user input into the input component.
Sets fieldValue in the component state to equal the keyboard input and syncs with the provided remote through a callback.

Source:
Returns:
Type
null

<static> render()

Renders the Input component.

Source:
Returns:
Type
JSX