Class: Checkbox

FormComponents. Checkbox


new Checkbox()

Checkbox Component

Properties:
Name Type Description
fieldKey string

The key for the property on the object getting edited.

changeCallback function

The function that is called whenever a change occurs to this component

options array

The options that will turn into checkboxes

labelAttribute string

The attribute on an object to be displayed

disabled boolean

If true, disables making changes to the component

comparisonAttr array

The attribute to compare to the form's bound resource and return

overrideclass string

A string of classes to attach to the rendered checkboxes

Source:
See:

Methods


<static> buildCheckboxes()

The function that handles building the JSX for the checkboxes.
Loops through each option, and attaches classes and properties passed down
from the PropTypes.

Source:
Returns:

An array of checkbox jsx

Type
Array.<JSX>

<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 check 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
obj

<static> render()

Renders the Checkbox component

Source:
Returns:
Type
JSX