From 659b87f5c1c297c68b125f67bc0b29b547debfd0 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 23 Sep 2017 19:41:48 +0200 Subject: Composable components methods --- src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt') diff --git a/src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt b/src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt index 5e0e910a..a7820b30 100644 --- a/src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt +++ b/src/main/kotlin/pl/treksoft/kvision/modal/Alert.kt @@ -1,5 +1,6 @@ package pl.treksoft.kvision.modal +import pl.treksoft.kvision.core.Widget import pl.treksoft.kvision.html.ALIGN import pl.treksoft.kvision.html.BUTTONSTYLE import pl.treksoft.kvision.html.Button @@ -38,9 +39,10 @@ open class Alert(caption: String? = null, text: String? = null, rich: Boolean = this.addButton(okButton) } - override fun hide() { + override fun hide(): Widget { super.hide() this.callback?.invoke() + return this } companion object { -- cgit