mirror of https://github.com/Budibase/budibase.git
7 changed files with 93 additions and 22 deletions
@ -0,0 +1,37 @@ |
|||||
|
<script> |
||||
|
import { Select, Label } from "@budibase/bbui" |
||||
|
import { currentAsset, store } from "builderStore" |
||||
|
import { getDataProviderComponents } from "builderStore/dataBinding" |
||||
|
|
||||
|
export let parameters |
||||
|
|
||||
|
$: dataProviders = getDataProviderComponents( |
||||
|
$currentAsset.props, |
||||
|
$store.selectedComponentId |
||||
|
) |
||||
|
</script> |
||||
|
|
||||
|
<div class="root"> |
||||
|
<Label size="m" color="dark">Form</Label> |
||||
|
<Select secondary bind:value={parameters.componentId}> |
||||
|
<option value="" /> |
||||
|
{#if dataProviders} |
||||
|
{#each dataProviders as component} |
||||
|
<option value={component._id}>{component._instanceName}</option> |
||||
|
{/each} |
||||
|
{/if} |
||||
|
</Select> |
||||
|
</div> |
||||
|
|
||||
|
<style> |
||||
|
.root { |
||||
|
display: flex; |
||||
|
flex-direction: row; |
||||
|
align-items: baseline; |
||||
|
} |
||||
|
|
||||
|
.root :global(> div) { |
||||
|
flex: 1; |
||||
|
margin-left: var(--spacing-l); |
||||
|
} |
||||
|
</style> |
||||
Loading…
Reference in new issue