Package-level declarations

Types

Link copied to clipboard
object FormHeader

Functions

Link copied to clipboard
fun FormHeader(title: String, info: FormHeader.InfoData? = null, modifier: Modifier = Modifier.fillMaxWidth())
fun <T> FormHeader(title: String, info: FormHeader.InfoData? = null, checkbox: MutableState<Boolean>, modifier: Modifier = Modifier.fillMaxWidth())
fun <T> FormHeader(title: String, info: FormHeader.InfoData? = null, spinner: FormHeader.SpinnerData<T>, modifier: Modifier = Modifier.fillMaxWidth())
Link copied to clipboard
fun FormItem(label: String, modifier: Modifier = Modifier, content: @Composable () -> Unit)
Link copied to clipboard
fun <T : Number> FormNumberInput(title: String, value: MutableState<T>, modifier: Modifier = Modifier.fillMaxWidth(), min: T = NumberUtil.min(value.value), max: T = NumberUtil.max(value.value), stepSize: T = NumberUtil.one(value.value), commas: Int? = NumberUtil.defaultCommas(value.value), selectAllOnFocus: Boolean = false, prefix: @Composable () -> Unit? = null, suffix: @Composable () -> Unit? = null)
fun <T : Number> FormNumberInput(title: String, value: T, modifier: Modifier = Modifier.fillMaxWidth(), min: T = NumberUtil.min(value), max: T = NumberUtil.max(value), stepSize: T = NumberUtil.one(value), commas: Int? = null, selectAllOnFocus: Boolean = false, prefix: @Composable () -> Unit? = null, suffix: @Composable () -> Unit? = null, onValueChanged: (value: T) -> Unit)
Link copied to clipboard
fun FormNumberRangeInput(valueFrom: MutableIntState, valueTo: MutableIntState, modifier: Modifier = Modifier.fillMaxWidth(), min: Int = 0, max: Int = Int.MAX_VALUE, step: Int = 1, title: String? = null, titleFrom: String = stringResource(Res.string.from), titleTo: String = stringResource(Res.string.to))
fun FormNumberRangeInput(valueFrom: Int, valueTo: Int, modifier: Modifier = Modifier.fillMaxWidth(), min: Int = 0, max: Int = Int.MAX_VALUE, step: Int = 1, title: String? = null, titleFrom: String = stringResource(Res.string.from), titleTo: String = stringResource(Res.string.to), onValueChanged: (from: Int, to: Int) -> Unit)
Link copied to clipboard
fun <T> FormSpinner(title: String, value: MutableState<T>, items: List<T & Any>, mapper: @Composable (item: T) -> String, mapperDropdown: @Composable (item: T) -> String = mapper, modifier: Modifier = Modifier.fillMaxWidth())
fun <T> FormSpinner(title: String, value: T, items: List<T & Any>, mapper: @Composable (item: T) -> String, mapperDropdown: @Composable (item: T) -> String = mapper, modifier: Modifier = Modifier.fillMaxWidth(), onValueChanged: (value: T) -> Unit)
Link copied to clipboard
fun FormTextInput(title: String, value: MutableState<String>, modifier: Modifier = Modifier.fillMaxWidth(), maxLines: Int? = null)
fun FormTextInput(title: String, value: String, modifier: Modifier = Modifier.fillMaxWidth(), maxLines: Int? = null, onValueChanged: (value: String) -> Unit)