From db258d99998764105ccd7ecbbbf962b6cbd28f11 Mon Sep 17 00:00:00 2001 From: Harald Mack Date: Wed, 21 Aug 2024 12:58:15 +0200 Subject: [PATCH] make the option selection component exchangeable --- .../AbstractDataInput.svelte} | 4 ++-- .../components/{ => DataInput}/AbstractDropdownItem.svelte | 0 src/routes/firstdropdown/+page.svelte | 5 +++-- src/routes/nextdropdown/+page.svelte | 7 ++++--- 4 files changed, 9 insertions(+), 7 deletions(-) rename src/lib/components/{AbstractDropdown.svelte => DataInput/AbstractDataInput.svelte} (74%) rename src/lib/components/{ => DataInput}/AbstractDropdownItem.svelte (100%) diff --git a/src/lib/components/AbstractDropdown.svelte b/src/lib/components/DataInput/AbstractDataInput.svelte similarity index 74% rename from src/lib/components/AbstractDropdown.svelte rename to src/lib/components/DataInput/AbstractDataInput.svelte index edf0f9bf..8e26ff2a 100644 --- a/src/lib/components/AbstractDropdown.svelte +++ b/src/lib/components/DataInput/AbstractDataInput.svelte @@ -1,5 +1,4 @@

{heading}

{#each data as data_element} - + {/each}
diff --git a/src/lib/components/AbstractDropdownItem.svelte b/src/lib/components/DataInput/AbstractDropdownItem.svelte similarity index 100% rename from src/lib/components/AbstractDropdownItem.svelte rename to src/lib/components/DataInput/AbstractDropdownItem.svelte diff --git a/src/routes/firstdropdown/+page.svelte b/src/routes/firstdropdown/+page.svelte index 6d6c0bdf..03a2c4a1 100644 --- a/src/routes/firstdropdown/+page.svelte +++ b/src/routes/firstdropdown/+page.svelte @@ -1,6 +1,7 @@ - + diff --git a/src/routes/nextdropdown/+page.svelte b/src/routes/nextdropdown/+page.svelte index 5825d933..e7263104 100644 --- a/src/routes/nextdropdown/+page.svelte +++ b/src/routes/nextdropdown/+page.svelte @@ -1,6 +1,7 @@ - +