2020-09-08 17:03:04 +02:00
|
|
|
<script>
|
2020-09-14 13:07:08 +02:00
|
|
|
import { DataList } from "@budibase/bbui"
|
2020-09-08 17:03:04 +02:00
|
|
|
import { createEventDispatcher } from "svelte"
|
|
|
|
import { store } from "builderStore"
|
|
|
|
|
|
|
|
const dispatch = createEventDispatcher()
|
|
|
|
|
|
|
|
export let value = ""
|
|
|
|
|
2020-09-09 16:04:36 +02:00
|
|
|
const handleBlur = () => dispatch("change", value)
|
2020-09-08 17:03:04 +02:00
|
|
|
</script>
|
|
|
|
|
2020-10-12 16:14:34 +02:00
|
|
|
<div>
|
|
|
|
<DataList editable secondary thin on:blur={handleBlur} on:change bind:value>
|
|
|
|
<option value="" />
|
|
|
|
{#each $store.allScreens as screen}
|
|
|
|
<option value={screen.route}>{screen.props._instanceName}</option>
|
|
|
|
{/each}
|
|
|
|
</DataList>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
div {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
div :global(> div) {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
}
|
|
|
|
</style>
|