Home Reference Source Repository
public class | source

RadioButtonGroup

Extends:

react-native~Component → RadioButtonGroup

RadioButtonGroup Component

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

state: {selected: *}

public get

Get the value of checked RadioButton in RadioButtonGroup.

public set

value(value: string): *

Specifies that which RadioButton should be pre-selected

Public Constructors

public constructor(props: object) source

Params:

NameTypeAttributeDescription
props object
props.name string

RadioButtonGroup name. Often use in form

props.theme enum(THEME_NAME)
  • optional

RadioButton theme option

props.primary enum(COLOR_NAME)
  • optional

RadioButton primary color name. Specifies that which RadioButton should be pre-selected

props.value string
  • optional

The value of checked RadioButton

props.onSelect function(value: string)
  • optional

When RadioButtonGroup value change will trigger this function

Public Members

public state: {selected: *} source

public get value: string: * source

Get the value of checked RadioButton in RadioButtonGroup. Often use in form.

Return:

string

public set value(value: string): * source

Specifies that which RadioButton should be pre-selected