import CheckboxGroup from 'react-native-material-design-components/lib/CheckboxGroup.js'
CheckboxGroup
Extends:
react-native~Component → CheckboxGroup
CheckboxGroup Component
Constructor Summary
Public Constructor | ||
public |
constructor(props: object) |
Member Summary
Public Members | ||
public |
state: {selected: *[]} |
|
public get |
Get the value of checked Checkbox in CheckboxGroup. |
|
public set |
Make CheckboxGroup set some checkbox checked |
Public Constructors
public constructor(props: object) source
Params:
Name | Type | Attribute | Description |
props | object | ||
props.name | string | CheckboxGroup name. Often use in form |
|
props.theme | enum(THEME_NAME) |
|
Checkbox theme option |
props.primary | enum(COLOR_NAME) |
|
Checkbox primary color name. Specifies that which Checkbox should be pre-selected |
props.value | string[] |
|
A array save the values of checked Checkbox |
props.onSelect | function(value: string) |
|
When CheckboxGroup value change will trigger this function |