This commit is contained in:
Jan Prochazka
2021-03-04 15:20:08 +01:00
parent 7acea0f4ac
commit ef5bfb5a89
23 changed files with 368 additions and 72 deletions

View File

@@ -0,0 +1,14 @@
<script lang="ts">
export let options = [];
export let value;
$: console.log('FIELD', $$props.value);
</script>
<select {...$$restProps} on:change>
{#each options as x (x.value)}
<option value={x.value} selected={value == x.value}>
{x.label}
</option>
{/each}
</select>