DataTable

fun DataTable(tableList: List<TableModel>, currentSelection: TableSelection = TableSelection.Unselected(), tableInteractions: TableInteractions? = null, onResizedActions: TableResizeActions? = null, topContent: @Composable () -> Unit? = null, bottomContent: @Composable () -> Unit? = null, contentPadding: PaddingValues = if ( !TableTheme.configuration.editable && !tableList.all { it.areAllValuesEmpty() } ) { PaddingValues( vertical = LocalTableDimensions.current.tableVerticalPadding, horizontal = LocalTableDimensions.current.tableHorizontalPadding, ) } else { PaddingValues(bottom = TableTheme.dimensions.tableBottomPadding) }, loading: Boolean = false)

Composable function to display a data table.

Parameters

tableList

The list of table models to be displayed.

currentSelection

The current table selection.

tableInteractions

Optional table interactions callback.

onResizedActions

Optional table resize actions callback.

topContent

Optional composable content to be displayed at the top of the table.

bottomContent

Optional composable content to be displayed at the bottom of the table.

contentPadding

The padding values for the content of the table.