2020-09-08 17:03:04 +02:00
|
|
|
<script>
|
2020-09-09 16:04:36 +02:00
|
|
|
import { Select } 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-09-09 16:04:36 +02:00
|
|
|
<Select editable secondary on:blur={handleBlur} on:change bind:value>
|
|
|
|
<option value="" />
|
|
|
|
{#each $store.allScreens as screen}
|
|
|
|
<option value={screen.route}>{screen.props._instanceName}</option>
|
|
|
|
{/each}
|
|
|
|
</Select>
|