1
0
Fork 0
mirror of synced 2024-09-30 09:07:25 +13:00

Add data binding to nested fields within workflow block setup

This commit is contained in:
Andrew Kingston 2020-09-17 14:05:53 +01:00
parent f42a001b89
commit 063a774aee

View file

@ -1,8 +1,11 @@
<script>
import { backendUiStore } from "builderStore"
import { Input, Select, Label } from "@budibase/bbui"
import BindableInput from "../../../userInterface/BindableInput.svelte"
export let value
export let bindings
$: model = $backendUiStore.models.find(model => model._id === value?.modelId)
$: schemaFields = Object.entries(model?.schema ?? {})
@ -47,11 +50,12 @@
{/each}
</Select>
{:else}
<Input
<BindableInput
thin
value={value[field]}
on:change={e => setParsedValue(e, field)}
label={field}
on:change={e => setParsedValue(e, field)} />
{bindings} />
{/if}
</div>
{/each}