Constructor
new RadioSelector(props)
Initializes state and binds methods.
Parameters:
Name | Type | Description |
---|---|---|
props |
Array.<any> | Should contain a default value, array of options, and id prefix. |
- Source:
Extends
- React.Component
Methods
changeSelection(event)
Updates state with new value
Parameters:
Name | Type | Description |
---|---|---|
event |
object | Event from callback |
- Source:
render()
Renders out a list of labels wrapping radio inputs.
All elements are automatically linked with helper methods.
- Source: