Input Class
Description here
Copyright (c) 2016 ItsAsbreuk - http://itsasbreuk.nl
New BSD License - http://choosealicense.com/licenses/bsd-3-clause/
Item Index
Methods
Methods
_mergeDataAttrs
-
inputProps
Merges the data-*
attributes from props into the object
Parameters:
-
inputProps
Objectthe source props which will be extended
Returns:
object all the data-* attributes
componentDidMount
()
componentDidMount will call this.activatePlaces()
;
componentWillUnmount
()
componentWilUnmount does some cleanup.
element
-
props
Returns the rendered React-Element that serves as the source dom-element
Parameters:
-
props
Objectprops to be passed through to the Component
Returns:
ReactComponent
focus
-
[transitionTime]
Sets the focus on the Component.
Parameters:
-
[transitionTime]
Number optionaltransition-time to focus the element into the view
handleBlur
-
e
The method that is called whenever the input-Element gets blurred. It will change its internal state, so that the css looks right and also any validation-messages appear.
Parameters:
-
e
Objectevent-payload
handleChange
-
e
The method that is called whenever the input-Element changes its value. Will update the Redux-store (signupuser.homeaddress);
Parameters:
-
e
Objectevent-payload
handleClick
-
e
The method that is called whenever the input-Element gets clicked.
Parameters:
-
e
Objectevent-payload
handleContainerFocus
-
e
Callback that sets the focus to the descendent element by calling focus()
Parameters:
-
e
Objectevent-payload
handleFocus
-
e
The method that is called whenever the input-Element gets the focus. It will change its internal state, so that the css looks right and also any validation-messages disappear.
Parameters:
-
e
Objectevent-payload
handleKeyDown
-
e
The method that is called whenever the input-Element recieves a keyDown.
Parameters:
-
e
Objectevent-payload
handleKeyPress
-
e
The method that is called whenever the input-Element recieves a keyPress.
Parameters:
-
e
Objectevent-payload
handleKeyUp
-
e
The method that is called whenever the input-Element recieves a keyUp.
Parameters:
-
e
Objectevent-payload
render
()
React render-method --> renderes the Component.
Returns:
ReactComponent
Properties
formValidated
Boolean
Whether the parent-form has been validated. This value is needed to determine if the validate-status should be set.