Alert
class creates a confirmation element.
Alert structure is:
Attribute | Type | Required | Definition |
---|---|---|---|
title | String or Binding | Box alert title. | |
message | String or Binding | ✓ | Box alert message. |
onPressOk | Action | Confirmation button action. | |
labelOk | String | Confirmation button label. |
Container(
children = listOf(
Button(
text = "Alert Example",
onPress = listOf(
Alert(
title = "My Title",
message = "Alert message",
labelOk = "Close"
)
)
)
)
)
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.