Package-level declarations
Types
Link copied to clipboard
interface Appearance
Link copied to clipboard
class ButtonField(tag: String? = null, val title: StrRes, val appearance: @Composable () -> ButtonFieldAppearance = ButtonFieldAppearance.Default, onClick: () -> Unit) : ActionField, ComposeField
Link copied to clipboard
data class ButtonFieldAppearance(val buttonStyle: ButtonFieldAppearance.ButtonStyle = ButtonStyle.BUTTON, val buttonColors: ButtonColors? = null, val textStyle: TextStyle? = null, val padding: PaddingValues? = null, val horizontalArrangement: Arrangement.Horizontal = Arrangement.End, val verticalAlignment: Alignment.Vertical = Alignment.Top, val width: ButtonFieldAppearance.ButtonWidth = ButtonWidth.WRAP_CONTENT, val shape: Shape? = null, val icon: PainterRes? = null, val iconSize: DpSize = DpSize(width = 24.dp, height = 24.dp), val spacerWidth: Dp = 8.dp)
Button field appearance
Link copied to clipboard
class DropDownField<T>(tag: String? = null, possibleValues: List<DropdownOption<T>>, placeholder: StrRes? = null, isClearable: Boolean = false) : SingleChoiceField<T> , ComposeField
Link copied to clipboard
open class ErrorField(tag: String? = null, defaultValue: StrRes? = null, asWarning: Boolean = false) : Field<StrRes> , ComposeField
Link copied to clipboard
class IconButtonField(tag: String? = null, val icon: PainterRes, val contentDescription: StrRes? = null, val appearance: @Composable () -> IconButtonFieldAppearance = IconButtonFieldAppearance.Default, onClick: () -> Unit) : ActionField, ComposeField
Natively the icon is not available, so the description becomes the button title.
Link copied to clipboard
data class IconButtonFieldAppearance(val iconSize: DpSize = DpSize(width = 24.dp, height = 24.dp), val iconPadding: PaddingValues? = null, val buttonPadding: PaddingValues? = null, val horizontalArrangement: Arrangement.Horizontal = Arrangement.Start, val verticalAlignment: Alignment.Vertical = Alignment.Top, val backgroundColor: Color = Color.Unspecified, val contentColor: Color = Color.Unspecified, val shape: Shape = RectangleShape, val border: BorderStroke? = null)
Link copied to clipboard
class InputField(tag: String? = null, label: StrRes? = null, placeholder: StrRes? = label, lineLimits: TextLineLimits = TextLineLimits.SingleLine, val appearance: @Composable () -> InputFieldAppearance = InputFieldAppearance.Default, trailingIconSlot: @Composable () -> Unit? = null) : TextField, ComposeField
Input field which can be used to get user input.
Link copied to clipboard
data class InputFieldAppearance(val colors: FieldColors, val textStyle: TextStyle, val clearable: Boolean = false, val readOnly: Boolean = false, val visualTransformation: VisualTransformation = VisualTransformation.None, val keyboardOptions: KeyboardOptions = KeyboardOptions.Default, val keyboardActions: KeyboardActions = KeyboardActions.Default, val leadingIconRes: PainterRes? = null, val trailingIconRes: PainterRes? = null, val autofillType: ContentType? = null)
Link copied to clipboard
class LabelField(tag: String? = null, val defaultValue: StrRes? = null, val appearance: @Composable () -> LabelFieldAppearance = LabelFieldAppearance.Default, isTitle: Boolean = false) : DisplayTextField, ComposeField
Link copied to clipboard
Label field appearance
Link copied to clipboard
class ParagraphField(tag: String? = null, val appearance: @Composable () -> ParagraphFieldAppearance = ParagraphFieldAppearance.Default) : DisplayParagraphField, ComposeField
Link copied to clipboard
data class ParagraphFieldAppearance(val colors: FieldColors, val textStyle: TextStyle, val linePrefix: String? = null, val backgroundColor: Color? = Color.Unspecified, val borderSize: Dp = 1.dp, val borderColor: Color = Color.Unspecified, val padding: PaddingValues = PaddingValues(8.dp), val cornerShape: Shape? = null, val width: ParagraphFieldAppearance.Width = Width.WrapContent)
Paragraph field appearance
Link copied to clipboard
class PasswordField(tag: String? = null, val label: StrRes? = null, val placeholder: StrRes? = label, val appearance: @Composable () -> InputFieldAppearance = InputFieldAppearance.DefaultPassword) : SecureTextField, ComposeField
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class PhoneField(tag: String? = null, val placeholder: StrRes? = null, val appearance: @Composable () -> InputFieldAppearance = InputFieldAppearance.DefaultPhone) : PhoneNumberField, ComposeField
Link copied to clipboard
open class SelectableField<ValueType>(tag: String? = null, selectableValue: ValueType, defaultLabelForValue: StrRes? = null) : SelectionOptionField<ValueType> , ComposeField
A field that can be selected
Link copied to clipboard
Link copied to clipboard
class SwitchField(tag: String? = null, defaultLabel: StrRes, val appearance: @Composable () -> SwitchFieldAppearance = SwitchFieldAppearance.Default) : ToggleField, ComposeField
Link copied to clipboard