Alert

You will find here Alert definition and its attributes details

What is it?

Alert class creates a confirmation element.

Alert structure is:

AttributeTypeRequiredDefinition
titleString or BindingBox alert title.
messageString or BindingBox alert message.
onPressOkActionConfirmation button action.
labelOkStringConfirmation button label.

How to use it?

Container(
          children = listOf(
          Button(
                  text = "Alert Example",
                  onPress = listOf(
                    Alert(
                         title = "My Title",
                         message = "Alert message",
                         labelOk = "Close"
                    )
                 )
              )
           )
        )