diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-03-08 11:28:01 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-03-08 11:28:01 +0100 |
commit | 19906e0305e054c1d951705335a61d41949565f4 (patch) | |
tree | 2d892436af252abca86ea6dd267681d371b2e1d7 /src/main/kotlin/pl/treksoft/kvision/form/text | |
parent | 09d81e12fd4a41132cb711c282e98425dc1334cf (diff) | |
download | kvision-19906e0305e054c1d951705335a61d41949565f4.tar.gz kvision-19906e0305e054c1d951705335a61d41949565f4.tar.bz2 kvision-19906e0305e054c1d951705335a61d41949565f4.zip |
Add focus() and blur() methods to all FormControls.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/form/text')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/text/AbstractText.kt | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractText.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractText.kt index c946af8c..1d3b5e01 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractText.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractText.kt @@ -167,17 +167,11 @@ abstract class AbstractText(label: String? = null, rich: Boolean = false) : return this } - /** - * Makes the input element focused. - */ - open fun focus() { + override fun focus() { input.focus() } - /** - * Makes the input element blur. - */ - open fun blur() { + override fun blur() { input.blur() } } |