aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/form/text
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-03-08 11:28:01 +0100
committerRobert Jaros <rjaros@finn.pl>2018-03-08 11:28:01 +0100
commit19906e0305e054c1d951705335a61d41949565f4 (patch)
tree2d892436af252abca86ea6dd267681d371b2e1d7 /src/main/kotlin/pl/treksoft/kvision/form/text
parent09d81e12fd4a41132cb711c282e98425dc1334cf (diff)
downloadkvision-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.kt10
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()
}
}