TtEmptyStateViewModel

class TtEmptyStateViewModel(image: DrawableResolver?, headerText: StringResolver?, bodyText: StringResolver?, buttonViewModels: List<TtButtonViewModel>)

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.

buttonViewModels

The view model of the buttons to be shown.

Constructors

Link copied to clipboard
fun TtEmptyStateViewModel(image: DrawableResolver? = null, headerText: StringResolver? = null, bodyText: StringResolver? = null, buttonViewModels: List<TtButtonViewModel> = emptyList())

Properties

Link copied to clipboard
val bodyText: StringResolver? = null
Link copied to clipboard
val buttonViewModels: List<TtButtonViewModel>
Link copied to clipboard
val headerText: StringResolver? = null
Link copied to clipboard
val image: DrawableResolver? = null