Stylish Data Table Column
class StylishDataTableColumn<T>(val id: String, val title: String, val weight: Float = 1.0f, val horizontalAlignment: Alignment.Horizontal = Alignment.Start, val comparator: Comparator<T>? = null, val header: @Composable () -> Unit? = null, val exportValue: (T) -> Any?? = null, val cell: @Composable (T) -> Unit)
Column definition for StylishDataTable. The composable cell slot supports arbitrary UI, while comparator opts the column into sorting.
Constructors
Link copied to clipboard
constructor(id: String, title: String, weight: Float = 1.0f, horizontalAlignment: Alignment.Horizontal = Alignment.Start, comparator: Comparator<T>? = null, header: @Composable () -> Unit? = null, exportValue: (T) -> Any?? = null, cell: @Composable (T) -> Unit)