confirm
class is responsible for creating a confirmation modal element.
Confirm structure is:
Attribute | Type | Required | Definition |
---|---|---|---|
title | String or Binding | Title of the confirmation box. | |
message | String or Binding | ✓ | Confirmation box message. |
onPressOk | Action | Confirm button action. | |
onPressCancel | Action | Cancel button action. | |
labelOk | String | Confirmation button message. | |
labelCancel | String | Cancel button message. |
Button(text = "Confirm Example",
onPress = listOf(
Confirm(title = "Confirm Title",
message = "Confirm Message",
onPressOk = Alert(
title = "Ok",
message = "Confirmed"),
onPressCancel = Alert(
title = "Cancel",
message = "Cancelled"),
labelOk = "Accept",
labelCancel = "Deny"
)
)
)
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.