Class: RadioButton

FormComponents. RadioButton


new RadioButton()

RadioButton component
A component used to build radio-style checkbox elements.

Properties:
Name Type Description
fieldKey String

The key for the property on the object getting edited.

label String
identifier String
labelAttribute String
options Array

Possible options that will become the radio-button.

Source:
See:

Methods


<static> buildRadioButtons()

Build the radio buttons by mapping over the options prop.

Source:
Returns:
Type
Array

<static> componentWillReceiveProps(nextProps)

Called anytime this component receives new props. Not called on initial render.

Parameters:
Name Type Description
nextProps array

An array of the properties this component will receive

Source:
Returns:
Type
null

<static> customHandleChange(event)

Handle radio button selection.

Parameters:
Name Type Description
event event

The event that triggered the change

Source:
Returns:
Type
null

<static> getInitialState()

Gets the initial state of the component.

Source:
Returns:
Type
Object

<static> render()

Renders the RadioButton component.

Source:
Returns:
Type
JSX