blob: 28bbdb48f3db7bb7ad33210fa8172232641a61bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package pl.treksoft.kvision.form
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
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
}
final override val input: TextAreaInput = TextAreaInput(cols, rows, value).apply { id = idc }
init {
@Suppress("LeakingThis")
input.eventTarget = this
this.addInternal(input)
}
}
|