Data Table
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
table List
The list of table models to be displayed.
current Selection
The current table selection.
table Interactions
Optional table interactions callback.
on Resized Actions
Optional table resize actions callback.
top Content
Optional composable content to be displayed at the top of the table.
bottom Content
Optional composable content to be displayed at the bottom of the table.
content Padding
The padding values for the content of the table.