2023-03-28 05:13:48 +02:00
|
|
|
<script lang="ts">
|
2023-06-14 20:39:36 +02:00
|
|
|
import { UIEventSource } from "../../Logic/UIEventSource.js"
|
2023-03-28 05:13:48 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* For some stupid reason, it is very hard to bind inputs
|
|
|
|
*/
|
2023-06-14 20:39:36 +02:00
|
|
|
export let value: UIEventSource<number>
|
|
|
|
let i: number = value.data
|
2023-03-28 05:13:48 +02:00
|
|
|
$: value.setData(i)
|
|
|
|
</script>
|
|
|
|
|
2023-06-14 20:39:36 +02:00
|
|
|
<select bind:value={i}>
|
|
|
|
<slot />
|
2023-03-28 05:13:48 +02:00
|
|
|
</select>
|