diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-08-09 13:09:20 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-08-09 13:09:20 +0200 |
commit | 6c5cd8d6149251980b27a1371553dc79ea27571b (patch) | |
tree | 37399b50c79b18cd5c1ef2a657b5b4bf1a0b0169 | |
parent | Fix discarded card play at end of age (diff) | |
download | seven-wonders-6c5cd8d6149251980b27a1371553dc79ea27571b.tar.gz seven-wonders-6c5cd8d6149251980b27a1371553dc79ea27571b.tar.bz2 seven-wonders-6c5cd8d6149251980b27a1371553dc79ea27571b.zip |
Add className attribute to bpCards
-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 b7556360..9132de58 100644 --- a/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt +++ b/sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt @@ -204,12 +204,14 @@ fun RBuilder.bpCallout( fun RBuilder.bpCard( elevation: Elevation = Elevation.ZERO, interactive: Boolean = false, + className: String? = null, onClick: () -> Unit = {}, block: RHandler<ICardProps> = {} ): ReactElement = child(Card::class) { attrs { this.elevation = elevation this.interactive = interactive + this.className = className this.onClick = { onClick() } } block() |