TtBreadcrumbViewModel

data class TtBreadcrumbViewModel(label: LiveData<StringResolver>, icon: LiveData<DrawableResolver?>, onClick: () -> Unit)

The ViewModel for a breadcrumb inside the navigation bar.

Parameters

label

The label to show for the breadcrumb.

icon

The optional icon to show for the root breadcrumb.

onClick

Callback to receive click for the breadcrumb's click events.

Constructors

Link copied to clipboard
fun TtBreadcrumbViewModel(label: LiveData<StringResolver>, icon: LiveData<DrawableResolver?> = UnsetLiveData(), onClick: () -> Unit)

Properties

Link copied to clipboard
val icon: LiveData<DrawableResolver?>
Link copied to clipboard
val label: LiveData<StringResolver>
Link copied to clipboard
val onClick: () -> Unit