Beagle v1.6 is no longer actively maintained. The documented version you are viewing may contain deprecated functionality. For up-to-date documentation, see the latest version .
This component is a server-driven button responsible for setting a native button through Beagle.
Check the example below to see how the structure works:
|text||String or Binding||✓||Defines the button text and what it must be declared and it cannot be null.|
|styleId||String or Binding||It refers to a native style to be applied in the button. This attribute is optional, when it's not informed, your application's default style will be used.|
|onPress||List <Action>||Possible array actions that this button will go off when clicked. It is possible to adapt this action to be customized or an extension of any action already available in your interface. This attribute is optional, but if an action is defined here, it must be configured in the frontend. To create an action in the frontend, see the example here.|
|enabled||Bind<Boolean>||Enables or disables the field.|
|clickAnalyticsEvent||ClickEvent||Click event that will go off in case an analytics service has been implemented. Check here fore more information about analytics.|
Button( text = "Click me!", styleId = "DesignSystem.MyNativeStyle", onPress = listOf(Alert(message="Button example")) )
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.