TtListItemViewModelBinder

class TtListItemViewModelBinder<VM> : TtListItemBinder<ViewDataBinding, VM>

The default binder for TtListLinearLayout and TtListTableLayout to bind it with the ViewModel. The default binder has exactly one data binding variable called viewModel. If the binding class does not have it, the view items in TtListLinearLayout or TtListTableLayout can not be populated.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
open override fun bind(binding: ViewDataBinding, viewModel: VM)

Implementations must bind viewModel to the given binding.