RadioButtonData

data class RadioButtonData(val uid: String, val selected: Boolean, val enabled: Boolean, val textInput: AnnotatedString?) : OptionData

Data model used for DHIS2 RadioButton component.

Parameters

uid

for item.

enabled

Controls the enabled state of the component. When false, this button will not be clickable and will appear disabled to accessibility services.

selected

whether the item is checked or not.

textInput

the text to be displayed.

Constructors

Link copied to clipboard
constructor(uid: String, selected: Boolean, enabled: Boolean, textInput: String)
constructor(uid: String, selected: Boolean, enabled: Boolean, textInput: AnnotatedString?)

Properties

Link copied to clipboard
open override val enabled: Boolean
Link copied to clipboard
open override val selected: Boolean
Link copied to clipboard
open override val textInput: AnnotatedString?
Link copied to clipboard
open override val uid: String