TextButtonSelector
fun TextButtonSelector( enabled: Boolean = true, firstOptionText: String, middleText: String, secondOptionText: String, modifier: Modifier = Modifier, onClickFirstOption: () -> Unit, onClickSecondOption: () -> Unit)
DHIS2 TextButtonSelector
Parameters
enabled
Controls the enabled state of the component. When false
, this button will not be clickable and will appear disabled to accessibility services.
firstOptionText
text to be displayed for first option to be used
middleText
The text to be displayed between options.
secondOptionText
The text to be displayed for second option
onClickFirstOption
Callback when first option is clicked.
onClickSecondOption
Callback when second option is clicked.
modifier
optional Modifier.