Add checkbox to specify navigate action should open in a modal insteaf

This commit is contained in:
Andrew Kingston 2021-07-30 13:59:04 +01:00
parent e711fffc45
commit 7723a1ed60
1 changed files with 7 additions and 9 deletions

View File

@ -1,5 +1,5 @@
<script>
import { Label } from "@budibase/bbui"
import { Label, Checkbox } from "@budibase/bbui"
import { getBindableProperties } from "builderStore/dataBinding"
import { currentAsset, store } from "builderStore"
import DrawerBindableInput from "components/common/bindings/DrawerBindableInput.svelte"
@ -18,19 +18,17 @@
on:change={value => (parameters.url = value.detail)}
{bindings}
/>
<div />
<Checkbox text="Peek screen in modal" bind:value={parameters.peek} />
</div>
<style>
.root {
display: flex;
flex-direction: row;
align-items: baseline;
display: grid;
align-items: center;
gap: var(--spacing-m);
grid-template-columns: auto 1fr;
max-width: 800px;
margin: 0 auto;
}
.root :global(> div) {
flex: 1;
margin-left: var(--spacing-l);
}
</style>