File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/main/kotlin/app/softwork/bootstrapcompose Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,11 @@ import org.w3c.dom.*
8
8
public fun Card (
9
9
styling : (Styling .() -> Unit )? = null,
10
10
attrs : AttrBuilderContext <HTMLDivElement >? = null,
11
+ headerAttrs : AttrBuilderContext <HTMLDivElement >? = null,
11
12
header : ContentBuilder <HTMLDivElement >? = null,
13
+ footerAttrs : AttrBuilderContext <HTMLDivElement >? = null,
12
14
footer : ContentBuilder <HTMLDivElement >? = null,
15
+ bodyAttrs : AttrBuilderContext <HTMLDivElement >? = null,
13
16
body : ContentBuilder <HTMLDivElement >
14
17
) {
15
18
Style
@@ -25,11 +28,11 @@ public fun Card(
25
28
attrs?.invoke(this )
26
29
}) {
27
30
header?.let {
28
- Div ({ classes(" card-header" ) }, header)
31
+ Div ({ classes(" card-header" ); headerAttrs?.invoke( this ) }, header)
29
32
}
30
- Div ({ classes(" card-body" ) }, body)
33
+ Div ({ classes(" card-body" ); bodyAttrs?.invoke( this ) }, body)
31
34
footer?.let {
32
- Div ({ classes(" card-footer" ) }, footer)
35
+ Div ({ classes(" card-footer" ); footerAttrs?.invoke( this ) }, footer)
33
36
}
34
37
}
35
38
}
You can’t perform that action at this time.
0 commit comments