Add screen input to CloseScreenModal

This commit is contained in:
Mel O'Hagan 2022-09-28 13:49:35 +01:00
parent 7bcc4efde6
commit 4bb9dad06e
1 changed files with 20 additions and 5 deletions

View File

@ -1,16 +1,31 @@
<script>
import { Body } from "@budibase/bbui"
import { Label, Body } from "@budibase/bbui"
import DrawerBindableInput from "components/common/bindings/DrawerBindableInput.svelte"
export let parameters
export let bindings = []
</script>
<Body size="S">Navigate To screen, or leave blank.</Body>
<br />
<div class="root">
<Body size="S">This action doesn't require any additional settings.</Body>
<Body size="S">
This action won't do anything if there isn't a screen modal open.
</Body>
<Label small>Screen</Label>
<DrawerBindableInput
title="Destination URL"
placeholder="/screen"
value={parameters.url}
on:change={value => (parameters.url = value.detail)}
{bindings}
/>
</div>
<style>
.root {
display: grid;
align-items: center;
gap: var(--spacing-m);
grid-template-columns: auto 1fr;
max-width: 400px;
margin: 0 auto;
}
</style>