TtEmptyStateViewModel

data class TtEmptyStateViewModel(val image: DrawableResolver? = null, val headerText: StringResolver? = null, val bodyText: StringResolver? = null, val primaryButtonViewModel: TtButtonViewModel? = null, val secondaryButtonViewModel: TtButtonViewModel? = null)

A view model for TtEmptyStateView. This view model can be applied via TtEmptyStateView's ttViewModel XML property, or the extension method TtEmptyStateView.setViewModel.

Parameters

image

The image to be shown.

headerText

The header text to be shown.

bodyText

The body text to be shown.

primaryButtonViewModel

The view model of the primary button to be shown.

secondaryButtonViewModel

The view model of the secondary button to be shown.

Constructors

Link copied to clipboard
fun TtEmptyStateViewModel(image: DrawableResolver? = null, headerText: StringResolver? = null, bodyText: StringResolver? = null, primaryButtonViewModel: TtButtonViewModel? = null, secondaryButtonViewModel: TtButtonViewModel? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val image: DrawableResolver? = null
Link copied to clipboard