From afe7e429d69051b9b173f2090ca56c17b833388f Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Tue, 9 Feb 2021 20:23:22 +0100 Subject: Add random username generation Resolves: https://github.com/joffrey-bion/seven-wonders/issues/95 --- sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sw-ui/src/main/kotlin/com/palantir') diff --git a/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt b/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt index 347e2170..a134ac8c 100644 --- a/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt +++ b/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt @@ -72,12 +72,14 @@ fun RBuilder.bpInputGroup( large: Boolean = false, placeholder: String = "", rightElement: ReactElement? = null, + value: String? = null, onChange: (Event) -> Unit, ): ReactElement = child(InputGroup::class) { attrs { this.large = large this.placeholder = placeholder this.rightElement = rightElement + this.value = value this.onChange = onChange } } -- cgit