From b9a849b4ebf397b04b4b3c405de325b740b958aa Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Fri, 3 Nov 2017 15:16:42 +0100 Subject: Select input components --- src/main/kotlin/pl/treksoft/kvision/Showcase.kt | 86 ++++++++++++++++++------- 1 file changed, 63 insertions(+), 23 deletions(-) (limited to 'src/main/kotlin/pl/treksoft/kvision/Showcase.kt') diff --git a/src/main/kotlin/pl/treksoft/kvision/Showcase.kt b/src/main/kotlin/pl/treksoft/kvision/Showcase.kt index 282ea510..8821e94b 100644 --- a/src/main/kotlin/pl/treksoft/kvision/Showcase.kt +++ b/src/main/kotlin/pl/treksoft/kvision/Showcase.kt @@ -2,26 +2,12 @@ package pl.treksoft.kvision import com.lightningkite.kotlin.observable.list.observableListOf import pl.treksoft.kvision.basic.Label -import pl.treksoft.kvision.core.BGATTACH -import pl.treksoft.kvision.core.BGREPEAT -import pl.treksoft.kvision.core.BGSIZE -import pl.treksoft.kvision.core.BORDERSTYLE -import pl.treksoft.kvision.core.Background -import pl.treksoft.kvision.core.Border -import pl.treksoft.kvision.core.COLOR -import pl.treksoft.kvision.core.Img -import pl.treksoft.kvision.core.Root +import pl.treksoft.kvision.core.* import pl.treksoft.kvision.data.DataComponent import pl.treksoft.kvision.data.DataContainer import pl.treksoft.kvision.dropdown.DD.* import pl.treksoft.kvision.dropdown.DropDown -import pl.treksoft.kvision.form.CheckBox -import pl.treksoft.kvision.form.INPUTSIZE -import pl.treksoft.kvision.form.TEXTINPUTTYPE -import pl.treksoft.kvision.form.Text -import pl.treksoft.kvision.form.TextArea -import pl.treksoft.kvision.form.TextAreaInput -import pl.treksoft.kvision.form.TextInput +import pl.treksoft.kvision.form.* import pl.treksoft.kvision.html.* import pl.treksoft.kvision.html.TAG.DIV import pl.treksoft.kvision.html.TAG.H1 @@ -73,7 +59,7 @@ class Showcase : ApplicationBase() { } } root.add(mbutton2) - val textField = TextInput(placeholder = "Wprowadź hasło ...", value = "abc") + val textField = TextInput(value = "abc").apply { placeholder = "Wprowadź hasło ..." } val mbutton3 = Button("Ukryj/Pokaż").setEventListener