Allow form step to be bindable
This commit is contained in:
parent
00e6a43e3e
commit
22b456da5e
1 changed files with 8 additions and 2 deletions
|
@ -1,10 +1,12 @@
|
||||||
<script>
|
<script>
|
||||||
import { Select, Label, Stepper } from "@budibase/bbui"
|
import { Select, Label } from "@budibase/bbui"
|
||||||
import { currentAsset, store } from "builderStore"
|
import { currentAsset, store } from "builderStore"
|
||||||
import { getActionProviderComponents } from "builderStore/dataBinding"
|
import { getActionProviderComponents } from "builderStore/dataBinding"
|
||||||
import { onMount } from "svelte"
|
import { onMount } from "svelte"
|
||||||
|
import DrawerBindableInput from "components/common/bindings/DrawerBindableInput.svelte"
|
||||||
|
|
||||||
export let parameters
|
export let parameters
|
||||||
|
export let bindings = []
|
||||||
|
|
||||||
$: actionProviders = getActionProviderComponents(
|
$: actionProviders = getActionProviderComponents(
|
||||||
$currentAsset,
|
$currentAsset,
|
||||||
|
@ -51,7 +53,11 @@
|
||||||
<Select bind:value={parameters.type} options={typeOptions} />
|
<Select bind:value={parameters.type} options={typeOptions} />
|
||||||
{#if parameters.type === "specific"}
|
{#if parameters.type === "specific"}
|
||||||
<Label small>Number</Label>
|
<Label small>Number</Label>
|
||||||
<Stepper bind:value={parameters.number} />
|
<DrawerBindableInput
|
||||||
|
{bindings}
|
||||||
|
value={parameters.number}
|
||||||
|
on:change={e => (parameters.number = e.detail)}
|
||||||
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue