mirror of https://github.com/Budibase/budibase.git
5 changed files with 59 additions and 17 deletions
@ -1,12 +1,10 @@ |
|||||
<script> |
<script> |
||||
export let _bb |
export let _bb |
||||
export let isPrimaryAction = false |
|
||||
export let onClick = () => {} |
export let onClick = () => {} |
||||
|
|
||||
let cardBody |
let cardBody |
||||
let cls = isPrimaryAction ? "mdc-card__primary-action" : "" |
|
||||
|
|
||||
$: cardBody && _bb.attachChildren(cardBody) |
$: cardBody && _bb.attachChildren(cardBody) |
||||
</script> |
</script> |
||||
|
|
||||
<div bind:this={cardBody} class={cls} on:click={onClick} /> |
<div bind:this={cardBody} class="mdc-card__primary-action" on:click={onClick} /> |
||||
|
|||||
Loading…
Reference in new issue