forked from tsai/budibase
7 changed files with 8 additions and 133 deletions
@ -1,38 +0,0 @@ |
|||||
<script> |
|
||||
import { Select, Label } from "@budibase/bbui" |
|
||||
import { currentAsset, store } from "builderStore" |
|
||||
import { getActionProviderComponents } from "builderStore/dataBinding" |
|
||||
|
|
||||
export let parameters |
|
||||
|
|
||||
$: actionProviders = getActionProviderComponents( |
|
||||
$currentAsset, |
|
||||
$store.selectedComponentId, |
|
||||
"NextPage" |
|
||||
) |
|
||||
</script> |
|
||||
|
|
||||
<div class="root"> |
|
||||
<Label small>Data Provider</Label> |
|
||||
<Select |
|
||||
bind:value={parameters.componentId} |
|
||||
options={actionProviders} |
|
||||
getOptionLabel={(x) => x._instanceName} |
|
||||
getOptionValue={(x) => x._id} |
|
||||
/> |
|
||||
</div> |
|
||||
|
|
||||
<style> |
|
||||
.root { |
|
||||
display: flex; |
|
||||
flex-direction: row; |
|
||||
align-items: center; |
|
||||
max-width: 800px; |
|
||||
margin: 0 auto; |
|
||||
} |
|
||||
|
|
||||
.root :global(> div) { |
|
||||
flex: 1; |
|
||||
margin-left: var(--spacing-l); |
|
||||
} |
|
||||
</style> |
|
||||
@ -1,38 +0,0 @@ |
|||||
<script> |
|
||||
import { Select, Label } from "@budibase/bbui" |
|
||||
import { currentAsset, store } from "builderStore" |
|
||||
import { getActionProviderComponents } from "builderStore/dataBinding" |
|
||||
|
|
||||
export let parameters |
|
||||
|
|
||||
$: actionProviders = getActionProviderComponents( |
|
||||
$currentAsset, |
|
||||
$store.selectedComponentId, |
|
||||
"PrevPage" |
|
||||
) |
|
||||
</script> |
|
||||
|
|
||||
<div class="root"> |
|
||||
<Label small>Data Provider</Label> |
|
||||
<Select |
|
||||
bind:value={parameters.componentId} |
|
||||
options={actionProviders} |
|
||||
getOptionLabel={(x) => x._instanceName} |
|
||||
getOptionValue={(x) => x._id} |
|
||||
/> |
|
||||
</div> |
|
||||
|
|
||||
<style> |
|
||||
.root { |
|
||||
display: flex; |
|
||||
flex-direction: row; |
|
||||
align-items: center; |
|
||||
max-width: 800px; |
|
||||
margin: 0 auto; |
|
||||
} |
|
||||
|
|
||||
.root :global(> div) { |
|
||||
flex: 1; |
|
||||
margin-left: var(--spacing-l); |
|
||||
} |
|
||||
</style> |
|
||||
Loading…
Reference in new issue