aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/form/text
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/form/text')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/text/AbstractText.kt2
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt6
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/text/Password.kt6
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/text/RichText.kt6
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt2
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/text/Text.kt6
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/text/TextArea.kt6
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/text/TextAreaInput.kt2
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/text/TextInput.kt2
9 files changed, 24 insertions, 14 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 8dd2a241..48b8d201 100644
--- a/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractText.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractText.kt
@@ -9,7 +9,7 @@ import pl.treksoft.kvision.snabbdom.SnOn
import pl.treksoft.kvision.snabbdom.StringBoolPair
abstract class AbstractText(label: String? = null, rich: Boolean = false) :
- SimplePanel(setOf("form-group")), StringFormControl {
+ SimplePanel(setOf("form-group")), StringFormControl {
override var value
get() = input.value
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt
index 88614774..85cf6cf7 100644
--- a/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt
@@ -6,8 +6,10 @@ import pl.treksoft.kvision.form.INPUTSIZE
import pl.treksoft.kvision.snabbdom.StringBoolPair
import pl.treksoft.kvision.snabbdom.StringPair
-abstract class AbstractTextInput(value: String? = null,
- classes: Set<String> = setOf()) : Widget(classes) {
+abstract class AbstractTextInput(
+ value: String? = null,
+ classes: Set<String> = setOf()
+) : Widget(classes) {
init {
this.setInternalEventListener<AbstractTextInput> {
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/text/Password.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/Password.kt
index c5b8e622..cbdd7adf 100644
--- a/src/main/kotlin/pl/treksoft/kvision/form/text/Password.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/form/text/Password.kt
@@ -1,4 +1,6 @@
package pl.treksoft.kvision.form.text
-open class Password(value: String? = null, label: String? = null, rich: Boolean = false) : Text(TEXTINPUTTYPE.PASSWORD,
- value, label, rich)
+open class Password(value: String? = null, label: String? = null, rich: Boolean = false) : Text(
+ TEXTINPUTTYPE.PASSWORD,
+ value, label, rich
+)
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/text/RichText.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/RichText.kt
index 280c017d..6e1f8929 100644
--- a/src/main/kotlin/pl/treksoft/kvision/form/text/RichText.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/form/text/RichText.kt
@@ -1,7 +1,9 @@
package pl.treksoft.kvision.form.text
-open class RichText(value: String? = null,
- label: String? = null, rich: Boolean = false) : AbstractText(label, rich) {
+open class RichText(
+ value: String? = null,
+ label: String? = null, rich: Boolean = false
+) : AbstractText(label, rich) {
var inputHeight
get() = input.height
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt
index 5f791c94..c96bc371 100644
--- a/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt
@@ -6,7 +6,7 @@ import pl.treksoft.kvision.snabbdom.StringPair
import kotlin.browser.document
open class RichTextInput(value: String? = null, classes: Set<String> = setOf()) :
- AbstractTextInput(value, classes + "form-control" + "trix-control") {
+ AbstractTextInput(value, classes + "form-control" + "trix-control") {
private var trixId: String? = null
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/text/Text.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/Text.kt
index db3233ba..a17c1b5d 100644
--- a/src/main/kotlin/pl/treksoft/kvision/form/text/Text.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/form/text/Text.kt
@@ -1,8 +1,10 @@
package pl.treksoft.kvision.form.text
-open class Text(type: TEXTINPUTTYPE = TEXTINPUTTYPE.TEXT, value: String? = null,
- label: String? = null, rich: Boolean = false) : AbstractText(label, rich) {
+open class Text(
+ type: TEXTINPUTTYPE = TEXTINPUTTYPE.TEXT, value: String? = null,
+ label: String? = null, rich: Boolean = false
+) : AbstractText(label, rich) {
var type
get() = input.type
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/text/TextArea.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/TextArea.kt
index 181298ac..e45d990d 100644
--- a/src/main/kotlin/pl/treksoft/kvision/form/text/TextArea.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/form/text/TextArea.kt
@@ -1,7 +1,9 @@
package pl.treksoft.kvision.form.text
-open class TextArea(cols: Int? = null, rows: Int? = null, value: String? = null,
- label: String? = null, rich: Boolean = false) : AbstractText(label, rich) {
+open class TextArea(
+ cols: Int? = null, rows: Int? = null, value: String? = null,
+ label: String? = null, rich: Boolean = false
+) : AbstractText(label, rich) {
var cols
get() = input.cols
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/text/TextAreaInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/TextAreaInput.kt
index 2b5ff31d..01b531fb 100644
--- a/src/main/kotlin/pl/treksoft/kvision/form/text/TextAreaInput.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/form/text/TextAreaInput.kt
@@ -4,7 +4,7 @@ import com.github.snabbdom.VNode
import pl.treksoft.kvision.snabbdom.StringPair
open class TextAreaInput(cols: Int? = null, rows: Int? = null, value: String? = null, classes: Set<String> = setOf()) :
- AbstractTextInput(value, classes + "form-control") {
+ AbstractTextInput(value, classes + "form-control") {
var cols: Int? = cols
set(value) {
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/text/TextInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/TextInput.kt
index 3cd86e04..d735c82e 100644
--- a/src/main/kotlin/pl/treksoft/kvision/form/text/TextInput.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/form/text/TextInput.kt
@@ -9,7 +9,7 @@ enum class TEXTINPUTTYPE(val type: String) {
}
open class TextInput(type: TEXTINPUTTYPE = TEXTINPUTTYPE.TEXT, value: String? = null, classes: Set<String> = setOf()) :
- AbstractTextInput(value, classes + "form-control") {
+ AbstractTextInput(value, classes + "form-control") {
var type: TEXTINPUTTYPE = type
set(value) {