2021-02-17 02:56:40 +13:00
|
|
|
<script>
|
2021-04-09 04:10:18 +12:00
|
|
|
import { Button } from "@budibase/bbui"
|
2021-02-17 02:56:40 +13:00
|
|
|
|
2021-02-17 07:29:38 +13:00
|
|
|
export let hideAutocolumns
|
2021-02-17 02:56:40 +13:00
|
|
|
|
|
|
|
let anchor
|
|
|
|
let dropdown
|
|
|
|
|
|
|
|
function hideOrUnhide() {
|
|
|
|
hideAutocolumns = !hideAutocolumns
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div bind:this={anchor}>
|
2021-04-10 01:24:28 +12:00
|
|
|
<Button icon="MagicWand" primary size="S" quiet on:click={hideOrUnhide}>
|
2021-02-17 02:56:40 +13:00
|
|
|
{#if hideAutocolumns}
|
|
|
|
Show Auto Columns
|
2021-04-09 04:10:18 +12:00
|
|
|
{:else}
|
|
|
|
Hide Auto Columns
|
|
|
|
{/if}
|
|
|
|
</Button>
|
2021-02-17 02:56:40 +13:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
i {
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
</style>
|