diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-09 20:23:22 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-09 20:23:22 +0100 |
commit | afe7e429d69051b9b173f2090ca56c17b833388f (patch) | |
tree | 7237b4e51e6136aca9fb5bb072bf51b89e36d4a4 /sw-ui/src/main/kotlin/com/palantir | |
parent | Improve "join" tooltip for FINISHED games (diff) | |
download | seven-wonders-afe7e429d69051b9b173f2090ca56c17b833388f.tar.gz seven-wonders-afe7e429d69051b9b173f2090ca56c17b833388f.tar.bz2 seven-wonders-afe7e429d69051b9b173f2090ca56c17b833388f.zip |
Add random username generation
Resolves:
https://github.com/joffrey-bion/seven-wonders/issues/95
Diffstat (limited to 'sw-ui/src/main/kotlin/com/palantir')
-rw-r--r-- | sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt | 2 |
1 files changed, 2 insertions, 0 deletions
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 } } |