Interface SelectableLazyListScope
-
- All Implemented Interfaces:
public interface SelectableLazyListScopeInterface defining the scope for building a selectable lazy list.
-
-
Method Summary
Modifier and Type Method Description abstract Unititem(Object key, Object contentType, Boolean selectable, Function1<SelectableLazyItemScope, Unit> content)Represents an item in a selectable lazy list. abstract Unititems(Integer count, Function1<Integer, Object> key, Function1<Integer, Object> contentType, Function1<Integer, Boolean> selectable, Function2<SelectableLazyItemScope, Integer, Unit> itemContent)Represents a list of items based on the provided parameters. abstract UnitstickyHeader(Object key, Object contentType, Boolean selectable, Function1<SelectableLazyItemScope, Unit> content)A method that enables sticky header behavior in a list or grid view. -
-
Method Detail
-
item
abstract Unit item(Object key, Object contentType, Boolean selectable, Function1<SelectableLazyItemScope, Unit> content)
Represents an item in a selectable lazy list.
- Parameters:
key- The unique identifier for the item.contentType- The type of content displayed in the item.selectable- Determines if the item is selectable.content- The content of the item as a composable function.
-
items
abstract Unit items(Integer count, Function1<Integer, Object> key, Function1<Integer, Object> contentType, Function1<Integer, Boolean> selectable, Function2<SelectableLazyItemScope, Integer, Unit> itemContent)
Represents a list of items based on the provided parameters.
- Parameters:
count- The number of items in the list.key- A function that generates a unique key for each item based on its index.contentType- A function that returns the content type of an item based on its index.selectable- A function that determines if an item is selectable based on its index.itemContent- The content of each individual item, specified as a composable function that takes the item's index as a parameter.
-
stickyHeader
abstract Unit stickyHeader(Object key, Object contentType, Boolean selectable, Function1<SelectableLazyItemScope, Unit> content)
A method that enables sticky header behavior in a list or grid view.
- Parameters:
key- The unique identifier for the sticky header.contentType- The type of content in the sticky header.selectable- Specifies whether the sticky header is selectable.content- The content to be displayed in the sticky header, provided as a composable function
-
-
-
-