https://kotlinlang.org logo
#compose
Title
# compose
m

Mehdi Haghgoo

11/16/2021, 8:08 PM
Does BasicTextField, TextField or OutlinedTextfield have a mechanism for showing error message similar to what is achieved using TextView's setError() and getError()?
s

Siyamed

11/16/2021, 8:13 PM
They have isError attribute
1
But not the same dialog
m

Mehdi Haghgoo

11/16/2021, 8:15 PM
Yes, I can set the isError parameter, but it does not set the error message.
s

Siyamed

11/16/2021, 8:18 PM
:/
c

Csaba Kozák

11/17/2021, 9:14 AM
We implemented our own
TextField
on top of
BasicTextField
to show the error message (and others).
1
m

Mehdi Haghgoo

11/17/2021, 9:16 AM
Why didn't you implement it on to of material TextField?
c

Csaba Kozák

11/17/2021, 9:51 AM
Because we have a completely different look than the Material one. If it’s not your case, maybe you can reuse the Material
TextField
and show the error on top of it.
1
3 Views