Constructor
new FloatingLabel(props)
Initializes state and binds methods
Parameters:
Name | Type | Description |
---|---|---|
props |
Array.<any> | Should contain any input classes, the input id, the label text, and optionally an onChange callback |
Extends
- React.Component
Methods
handleTextChange(event)
Event callback for input changes.
Updates state to comply with React standard
controlled input elements
Parameters:
Name | Type | Description |
---|---|---|
event |
object |
render()
Renders a form input with all the required callback and id information
nested within a div, and sibling to a label