NavigationBarViewModel

@IviExperimental(reasons = [])
data class NavigationBarViewModel(val showBackButton: Boolean = false, val onBackButtonClicked: () -> Unit = {}, val title: StringResolver? = null, val breadcrumbs: List<Breadcrumb> = emptyList())

View model for a navigation bar, such as TtNavigationBar. The navigation bar allows the end-user to navigate between different panels.

Constructors

Link copied to clipboard
constructor(showBackButton: Boolean = false, onBackButtonClicked: () -> Unit = {}, title: StringResolver? = null, breadcrumbs: List<Breadcrumb> = emptyList())

Properties

Link copied to clipboard

Breadcrumbs for panels to which the end-user can navigate.

Link copied to clipboard

The function to be invoked when the back button is clicked.

Link copied to clipboard
val showBackButton: Boolean = false

Whether to show the back button.

Link copied to clipboard
val title: StringResolver? = null

The title of the current panel.