Package-level declarations

Types

Link copied to clipboard

Default load-state content of the paged Table.

Link copied to clipboard

Receiver of the paged table's errorContent and errorBar slots.

Functions

Link copied to clipboard
fun <T : Any> LazyListScope.handleLoadState(data: PagingData<T>, width: Dp? = null, height: Dp? = null)

Renders load states as list items. The paged Table now shows every load state itself.

Link copied to clipboard
fun <T : Any, C> Table(items: PagingData<T>?, state: TableState<C>, columns: ImmutableList<ColumnSpec<T, C, Unit>>, modifier: Modifier = Modifier, placeholderRow: @Composable () -> Unit? = null, emptyContent: @Composable TableEmptyScope.() -> Unit = TableDefaults.EmptyContent, loadingContent: @Composable () -> Unit = PagedTableDefaults.LoadingContent, errorContent: @Composable PagedTableErrorScope.() -> Unit = PagedTableDefaults.ErrorContent, loadingIndicator: @Composable () -> Unit? = PagedTableDefaults.LoadingIndicator, errorBar: @Composable PagedTableErrorScope.() -> Unit? = PagedTableDefaults.ErrorBar, rowKey: (item: T?, index: Int) -> Any = DefaultPagedRowKey, onRowClick: (T) -> Unit? = null, onRowLongClick: (T) -> Unit? = null, rowBlocks: RowBlocks<T>? = null, contextMenu: @Composable (item: T, pos: Offset, dismiss: () -> Unit) -> Unit? = null, customization: TableCustomization<T, C> = DefaultTableCustomization(), colors: TableColors = TableDefaults.colors(), typography: TableTypography = TableDefaults.typography(), strings: StringProvider = DefaultStrings, filterChips: TableFilterChipStyle<C> = TableFilterChipDefaults.style(), verticalState: LazyListState = rememberLazyListState(), horizontalState: ScrollState = rememberScrollState(), icons: TableHeaderIcons = TableHeaderDefaults.icons(), columnMenu: ColumnMenuBuilder<C> = ColumnMenuDefaults.builder(), shape: Shape = RoundedCornerShape(4.dp), border: BorderStroke? = null)
fun <T : Any, C, E> Table(items: PagingData<T>?, state: TableState<C>, columns: ImmutableList<ColumnSpec<T, C, E>>, tableData: E, modifier: Modifier = Modifier, placeholderRow: @Composable () -> Unit? = null, emptyContent: @Composable TableEmptyScope.() -> Unit = TableDefaults.EmptyContent, loadingContent: @Composable () -> Unit = PagedTableDefaults.LoadingContent, errorContent: @Composable PagedTableErrorScope.() -> Unit = PagedTableDefaults.ErrorContent, loadingIndicator: @Composable () -> Unit? = PagedTableDefaults.LoadingIndicator, errorBar: @Composable PagedTableErrorScope.() -> Unit? = PagedTableDefaults.ErrorBar, rowKey: (item: T?, index: Int) -> Any = DefaultPagedRowKey, onRowClick: (T) -> Unit? = null, onRowLongClick: (T) -> Unit? = null, rowBlocks: RowBlocks<T>? = null, contextMenu: @Composable (item: T, pos: Offset, dismiss: () -> Unit) -> Unit? = null, customization: TableCustomization<T, C> = DefaultTableCustomization(), colors: TableColors = TableDefaults.colors(), typography: TableTypography = TableDefaults.typography(), strings: StringProvider = DefaultStrings, filterChips: TableFilterChipStyle<C> = TableFilterChipDefaults.style(), verticalState: LazyListState = rememberLazyListState(), horizontalState: ScrollState = rememberScrollState(), icons: TableHeaderIcons = TableHeaderDefaults.icons(), columnMenu: ColumnMenuBuilder<C> = ColumnMenuDefaults.builder(), shape: Shape = RoundedCornerShape(4.dp), border: BorderStroke? = null)

Composable data table with paging support.