Cell

Types

Link copied to clipboard
class Checkmark(val value: Boolean, val color: Color? = null, val horizontalAlignment: Alignment.Horizontal = Alignment.Start, val verticalCellAlignment: Alignment.Vertical = Alignment.Top) : Cell<Boolean>
Link copied to clipboard
class Custom<T>(val value: T, val valueToText: (T) -> String = { it.toString() }, val verticalCellAlignment: Alignment.Vertical = Alignment.Top, val cell: @Composable (modifier: Modifier) -> Unit) : Cell<T>
Link copied to clipboard
class Data<T>(val value: T, val valueToText: (T) -> String, val color: Color = Color.Unspecified, val textStyle: TextStyle? = null, val textAlign: TextAlign = TextAlign.Start, val fontWeight: FontWeight? = null, val maxLines: Int = Int.MAX_VALUE, val minLines: Int = 1, val verticalCellAlignment: Alignment.Vertical = Alignment.Top) : Cell<T>
Link copied to clipboard
class Enum<T : Enum<T>>(val value: T, val color: Color = Color.Unspecified, val textStyle: TextStyle? = null, val textAlign: TextAlign = TextAlign.Start, val fontWeight: FontWeight? = null, val maxLines: Int = Int.MAX_VALUE, val minLines: Int = 1, val verticalCellAlignment: Alignment.Vertical = Alignment.Top, val valueToString: (T) -> String = { it.name }) : Cell<T>
Link copied to clipboard
class Number<T : Number, Comparable<T>>(val value: T, val color: Color = Color.Unspecified, val textStyle: TextStyle? = null, val textAlign: TextAlign = TextAlign.Start, val fontWeight: FontWeight? = null, val maxLines: Int = Int.MAX_VALUE, val minLines: Int = 1, val verticalCellAlignment: Alignment.Vertical = Alignment.Top) : Cell<T>
Link copied to clipboard
class Text(val value: String, val color: Color = Color.Unspecified, val textStyle: TextStyle? = null, val fontWeight: FontWeight? = null, val textAlign: TextAlign = TextAlign.Start, val maxLines: Int = Int.MAX_VALUE, val minLines: Int = 1, val verticalCellAlignment: Alignment.Vertical = Alignment.Top) : Cell<String>

Properties

Link copied to clipboard
abstract val value: CellValue
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun displayValue(): String
Link copied to clipboard
abstract fun render(modifier: Modifier)
Link copied to clipboard
abstract fun sort(): Comparable<*>