TtButtonViewModel
Parameters
The image to show next to the text within the button.
The text to show within the button.
The ActionType which determines the appearance of the button.
Indicates whether the button is enabled.
Indicates whether the button is activated. This can be used for toggle buttons.
Indicates if the button is visible. If no value is provided, the button is visible only if it has an image and/or text.
Indicates if a badge should be shown on top of the button. The badge signifies that there is update relevant to the user that can be accessed by clicking the button.
If true
the image tint color matches the text color of the ActionType.
An ID to tag the button with, which can be used to identify it later. This is useful, for example, during tests in combination with the withIdTag
matcher.
Callback function for when the button is clicked.
Callback function for when the button is clicked when in disabled state.