summaryrefslogtreecommitdiff
path: root/sw-ui/src
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-08-09 13:09:20 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-08-09 13:09:20 +0200
commit6c5cd8d6149251980b27a1371553dc79ea27571b (patch)
tree37399b50c79b18cd5c1ef2a657b5b4bf1a0b0169 /sw-ui/src
parentFix discarded card play at end of age (diff)
downloadseven-wonders-6c5cd8d6149251980b27a1371553dc79ea27571b.tar.gz
seven-wonders-6c5cd8d6149251980b27a1371553dc79ea27571b.tar.bz2
seven-wonders-6c5cd8d6149251980b27a1371553dc79ea27571b.zip
Add className attribute to bpCards
Diffstat (limited to 'sw-ui/src')
-rw-r--r--sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt2
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()
bgstack15