From 6c5cd8d6149251980b27a1371553dc79ea27571b Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Sun, 9 Aug 2020 13:09:20 +0200 Subject: Add className attribute to bpCards --- sw-ui/src/main/kotlin/com/palantir/blueprintjs/blueprintjsHelpers.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sw-ui/src') 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 = {} ): ReactElement = child(Card::class) { attrs { this.elevation = elevation this.interactive = interactive + this.className = className this.onClick = { onClick() } } block() -- cgit