RadioButtonBlock

fun RadioButtonBlock(orientation: Orientation, content: List<RadioButtonData>, itemSelected: RadioButtonData?, modifier: Modifier = Modifier, onItemChange: (RadioButtonData) -> Unit)

DHIS2 radio button block.

Parameters

orientation

Controls how the radio buttons will be displayed, HORIZONTAL for rows or VERTICAL for columns.

content

Contains all the data that will be displayed, the list type is RadioButtonData, this data class contains all data for RadioButton composable.

itemSelected

controls which item is selected.

onItemChange

is a callback to notify which item has changed into the block.