Text Button Selector
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.
first Option Text
text to be displayed for first option to be used
middle Text
The text to be displayed between options.
second Option Text
The text to be displayed for second option
on Click First Option
Callback when first option is clicked.
on Click Second Option
Callback when second option is clicked.
modifier
optional Modifier.