blob: 9b65a3063e37938764414f56e7356d08d218d535 (
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
|
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 {
this.addInternal(input)
}
}
|