aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/form/TextArea.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/form/TextArea.kt')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/form/TextArea.kt28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/TextArea.kt b/src/main/kotlin/pl/treksoft/kvision/form/TextArea.kt
new file mode 100644
index 00000000..2efa99c9
--- /dev/null
+++ b/src/main/kotlin/pl/treksoft/kvision/form/TextArea.kt
@@ -0,0 +1,28 @@
+package pl.treksoft.kvision.form
+
+open class TextArea(cols: Int? = null, rows: Int? = null, placeholder: String? = null, value: String? = null,
+ name: String? = null, maxlength: Int? = null, label: String? = null, rich: Boolean = false,
+ disabled: Boolean = false) : AbstractText(label, rich) {
+
+ var cols
+ get() = input.cols
+ set(value) {
+ input.cols = value
+ }
+ var rows
+ get() = input.rows
+ set(value) {
+ input.rows = value
+ }
+ var wrapHard
+ get() = input.wrapHard
+ set(value) {
+ input.wrapHard = value
+ }
+
+ override final val input: TextAreaInput = TextAreaInput(cols, rows, placeholder, value, name, maxlength, disabled, idc)
+
+ init {
+ this.addInternal(input)
+ }
+}