TextFieldMolecule

class TextFieldMolecule(    val textAtom: TextAtom,     val backgroundColorAtom: ColorAtom,     val hintTextAtom: TextAtom? = null,     val errorTextAtom: TextAtom? = null,     val disabledColorAtom: ColorAtom? = null,     val cursorColor: AtomikColor? = null,     val errorColor: AtomikColor? = errorTextAtom?.textColor) : BaseMolecule

A molecule that contains information about a TextField

Constructors

Link copied to clipboard
fun TextFieldMolecule(    textAtom: TextAtom,     backgroundColorAtom: ColorAtom,     hintTextAtom: TextAtom? = null,     errorTextAtom: TextAtom? = null,     disabledColorAtom: ColorAtom? = null,     cursorColor: AtomikColor? = null,     errorColor: AtomikColor? = errorTextAtom?.textColor)

Properties

Link copied to clipboard
open override val atoms: List<Atom>
Link copied to clipboard
val backgroundColorAtom: ColorAtom

the ColorAtom of the background

Link copied to clipboard
val cursorColor: AtomikColor? = null

the AtomikColor of the cursor

Link copied to clipboard
val disabledColorAtom: ColorAtom? = null

the ColorAtom of the text if the ui is disabled

Link copied to clipboard
val errorColor: AtomikColor?

the AtomikColor of the error, used for all error elements in the View

Link copied to clipboard
val errorTextAtom: TextAtom? = null

the TextAtom used for the error Text when the field has an error

Link copied to clipboard
val hintTextAtom: TextAtom? = null

the TextAtom used for the hint Text when the field is empty

Link copied to clipboard
val textAtom: TextAtom

the TextAtom used for the entered Text

Extensions

Link copied to clipboard
fun TextFieldMolecule.colors(): TextFieldColors