Skip to main content

ButtonGroup

Description

The User.TappedContinue type defines an action that requires a client to The ButtonGroup type defines a control that represents a group of Button components. At least one button must be present in a group.

Properties

  • buttons (Array<Button>, required) - A list of Button components contained in this group.

Example

{
"type" : "ButtonGroup",
"buttons" : [
{
"label" : "Motor vehicle accident",
"onTap" : {
"type" : "User.Submitted<Screening.Response>",
"value" : {
"key" : "concussion_str_primary_cause",
"type" : "Screening.Response",
"value" : "motor_vehicle_accident"
}
},
"type" : "Button"
},
{
"label" : "Fall (e.g. from standing)",
"onTap" : {
"type" : "User.Submitted<Screening.Response>",
"value" : {
"key" : "concussion_str_primary_cause",
"type" : "Screening.Response",
"value" : "fall"
}
},
"type" : "Button"
},
{
"label" : "Sports-related",
"onTap" : {
"type" : "User.Submitted<Screening.Response>",
"value" : {
"key" : "concussion_str_primary_cause",
"type" : "Screening.Response",
"value" : "sports"
}
},
"type" : "Button"
},
{
"label" : "Physical assault",
"onTap" : {
"type" : "User.Submitted<Screening.Response>",
"value" : {
"key" : "concussion_str_primary_cause",
"type" : "Screening.Response",
"value" : "physical_assault"
}
},
"type" : "Button"
}
]
}