blob: 0181619527693ae04952d762fbed4f7379d11362 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package pl.treksoft.kvision.form
open class Text(type: TEXTINPUTTYPE = TEXTINPUTTYPE.TEXT, value: String? = null,
label: String? = null, rich: Boolean = false) : AbstractText(label, rich) {
var type
get() = input.type
set(value) {
input.type = value
}
var autocomplete
get() = input.autocomplete
set(value) {
input.autocomplete = value
}
final override val input: TextInput = TextInput(type, value).apply { id = idc }
init {
this.addInternal(input)
}
}
|