LazyDragSelectGridItemScope
class LazyDragSelectGridItemScope<Item>(state: DragSelectState<Item>, lazyGridItemScope: LazyGridItemScope)
Receiver scope being used by the item content parameter of LazyDragSelectVerticalGrid or LazyDragSelectHorizontalGrid.
Parameters
Item
The type of the items in the grid.
state
The DragSelectState that is being used to manage the selection.
lazyGridItemScope
The LazyGridItemScope that is being used to render the items.
Functions
Link copied to clipboard
Link copied to clipboard
fun LazyDragSelectGridItemScope<*>.IndicatorIcon(options: IndicatorIconOptions, modifier: Modifier = Modifier)
fun LazyDragSelectGridItemScope<*>.IndicatorIcon(icon: ImageVector, tint: Color, contentDescription: String?, padding: Dp, backgroundColor: Color?, border: Dp?, shape: Shape?, modifier: Modifier = Modifier)
Indicator overlay to display the selected or unselected state of an item.
Link copied to clipboard
fun SelectableItem(item: Item, modifier: Modifier = Modifier, semanticsLabel: String = DEFAULT_LABEL, interactionSource: MutableInteractionSource? = null, enableIconIndicator: Boolean = true, selectedIcon: @Composable BoxScope.() -> Unit = { SelectedIcon() }, unselectedIcon: @Composable BoxScope.() -> Unit = { UnselectedIcon() }, animateSelection: Boolean = true, animateSelectionOptions: AnimateSelectionOptions = AnimateSelectionDefaults.Default, aspectRatio: Float = 1.0f, content: @Composable (toggled: Boolean) -> Unit)
A Composable that provides selectable support for the content.
Link copied to clipboard
fun LazyDragSelectGridItemScope<*>.SelectedIcon(modifier: Modifier = Modifier, options: IndicatorIconOptions = IndicatorIconDefaults.selectedIconOptions())
Indicator icon for the selected state.
Link copied to clipboard
fun LazyDragSelectGridItemScope<*>.UnselectedIcon(modifier: Modifier = Modifier, options: IndicatorIconOptions = IndicatorIconDefaults.unselectedIconOptions())
Indicator icon for the unselected state.