Search Result List View

LAST EDIT May 26 2021

SearchResultListView is a widget that displays a list of search results:

SearchResultListView

Adding the layout

Copied!

Binding with a ViewModel

Copied!

SeachResultListView comes with SearchViewModel which is responsible for providing all needed data. The view can be bound with it using:

After the SeachResultListView is bound to the SearchViewModel, the search can be triggered with the setQuery method. In the example below, the search query comes from SearchInputView: