You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
374 B
17 lines
374 B
<script lang="ts">
|
|
import BFormOption from "./BFormOption.svelte";
|
|
|
|
export let value: boolean | null;
|
|
|
|
function toggle() {
|
|
if (value === null) {
|
|
value = true;
|
|
} else if (value === true) {
|
|
value = false;
|
|
} else {
|
|
value = null;
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<BFormOption icon="power" on:click={toggle} state={value} color="#00FF00"></BFormOption>
|