forked from MapComplete/MapComplete
Refactoring: move all code files into a src directory
This commit is contained in:
parent
de99f56ca8
commit
e75d2789d2
389 changed files with 0 additions and 12 deletions
14
src/UI/Base/Dropdown.svelte
Normal file
14
src/UI/Base/Dropdown.svelte
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<script lang="ts">
|
||||
import { UIEventSource } from "../../Logic/UIEventSource.js"
|
||||
|
||||
/**
|
||||
* For some stupid reason, it is very hard to bind inputs
|
||||
*/
|
||||
export let value: UIEventSource<number>
|
||||
let i: number = value.data
|
||||
$: value.setData(i)
|
||||
</script>
|
||||
|
||||
<select bind:value={i}>
|
||||
<slot />
|
||||
</select>
|
||||
Loading…
Add table
Add a link
Reference in a new issue