2021-02-17 02:56:40 +13:00
|
|
|
<script>
|
|
|
|
import { TextButton } from "@budibase/bbui"
|
|
|
|
|
|
|
|
export let hideAutocolumns = true
|
|
|
|
|
|
|
|
let anchor
|
|
|
|
let dropdown
|
|
|
|
|
|
|
|
function hideOrUnhide() {
|
|
|
|
hideAutocolumns = !hideAutocolumns
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div bind:this={anchor}>
|
|
|
|
<TextButton text small on:click={hideOrUnhide}>
|
|
|
|
{#if hideAutocolumns}
|
2021-02-17 05:38:36 +13:00
|
|
|
<i class="ri-magic-line" />
|
2021-02-17 02:56:40 +13:00
|
|
|
Show Auto Columns
|
2021-02-17 05:38:36 +13:00
|
|
|
{:else}<i class="ri-magic-fill" /> Hide Auto Columns{/if}
|
2021-02-17 02:56:40 +13:00
|
|
|
</TextButton>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
i {
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
</style>
|