DialogList

Types

Link copied to clipboard
class Filter<T>(val filter: (filter: String, item: T) -> Boolean, val infoText: @Composable (count: Int, total: Int) -> String? = { count, total -> "$count/$total" }, val keepSelectionForInvisibleItems: Boolean = true, val showClearIcon: Boolean = true)

the default content provider for a list item that will use the default composables to render the provided texts and icon

Link copied to clipboard
interface ItemContents<T>

the content provider interface for a list item

Link copied to clipboard
class ItemDefaultContent<T>(text: @Composable (item: T) -> String, supportingText: @Composable (item: T) -> String? = null, trailingSupportingText: @Composable (item: T) -> String? = null, icon: @Composable (item: T) -> Unit? = null) : DialogList.ItemContents<T>

the default content provider for a list item that will use the default composables to render the provided texts and icon

Link copied to clipboard
sealed class SelectionMode<T>

selection mode for the list dialog