Class: TextArea

FormComponents. TextArea


new TextArea()

TextArea Component
A component used for building long-form text input forms.

Properties:
Name Type Argument Description
limit Number <optional>

Max character limit for text area

label String <optional>
placeholder String <optional>
helpText String <optional>
disabled Boolean <optional>
fieldKey String
required Boolean <optional>
Source:
See:
Example
render: function() { return(
	<Br.Form.TextArea
		fieldKey="userComment"
		label="Comment"
		placeholder="Sample text area component. Type away!"
		required="true"
  />
)}

Methods


<static> componentWillReceiveProps(nextProps)

Set fieldValue through props based on attached resource.

Parameters:
Name Type Description
nextProps Object

[description]

Source:
Returns:
Type
null

<static> getInitialState()

Gets the initial state of the component.

Source:
Returns:
Type
Object

<static> handleBlur(event)

When the field is out of focus, hide the text area character count.

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

<static> handleBlur(event)

When the field is out of focus, hide the text area character count.

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

<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> render()

Renders the TextArea component.

Source:
Returns:
Type
JSX