-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make the option selection component exchangeable
- Loading branch information
Showing
4 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
src/lib/components/AbstractDropdown.svelte → ...onents/DataInput/AbstractDataInput.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<script> | ||
import AbstractItem from './AbstractDropdownItem.svelte'; | ||
// @ts-nocheck | ||
/** | ||
* @type {any[]} | ||
*/ | ||
// @ts-ignore | ||
export let data = []; | ||
export let heading = 'dummy dropdown data'; | ||
export let itemComponent; // = AbstractDropdownItem; | ||
</script> | ||
|
||
<div class="items-center space-x-4 rtl:space-x-reverse"> | ||
<h1 class="mb-2 text-2xl font-bold tracking-tight text-gray-700 dark:text-gray-400">{heading}</h1> | ||
{#each data as data_element} | ||
<AbstractItem data={data_element} /> | ||
<svelte:component this={itemComponent} data={data_element} /> | ||
{/each} | ||
</div> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters