ThreadList
Composable rendering a paginated list of threads. Optionally, it renders a banner informing about new threads/thread messages outside of the loaded pages of threads.
Parameters
The ThreadListViewModel handling the loading of the threads.
Modifier instance for general styling.
The currently logged User, used for formatting the message in the thread preview.
Action invoked when the user clicks on the "Unread threads" banner. By default, it calls ThreadListViewModel.load to force reload the list of threads, loading the newly created/updated threads.
Action invoked when the usr clicks on a thread item in the list. No-op by default.
Action invoked when the current thread page was scrolled to the end, and a next page should be loaded. By default, it calls ThreadListViewModel.loadNextPage to load the next page of threads.
Composable rendering the "Unread threads" banner on the top of the list. Override it to provide a custom component to be rendered for displaying the number of new unread threads.
Composable rendering each Thread item in the list. Override this to provide a custom component for rendering the items.
Composable shown when there are no threads to display. Override this to provide custom component for rendering the empty state.
Composable shown during the initial loading of the threads. Override this to provide a custom initial loading state.
Composable shown at the bottom of the list during the loading of more threads (pagination). Override this to provide a custom loading component shown during the loading of more items.
Composable rendering a paginated list of threads. Optionally, it renders a banner informing about new threads/thread messages outside of the loaded pages of threads.
Parameters
The ThreadListState holding the current thread list state.
Modifier instance for general styling.
The currently logged User, used for formatting the message in the thread preview.
Action invoked when the user clicks on the "Unread threads" banner.
Action invoked when the usr clicks on a thread item in the list.
Action invoked when the current thread page was scrolled to the end, and a next page should be loaded.
Composable rendering the "Unread threads" banner on the top of the list. Override it to provide a custom component to be rendered for displaying the number of new unread threads.
Composable rendering each Thread item in the list. Override this to provide a custom component for rendering the items.
Composable shown when there are no threads to display. Override this to provide custom component for rendering the empty state.
Composable shown during the initial loading of the threads. Override this to provide a custom initial loading state.
Composable shown at the bottom of the list during the loading of more threads (pagination). Override this to provide a custom loading component shown during the loading of more items.