set filter modal

This commit is contained in:
Jan Prochazka
2021-03-05 20:29:10 +01:00
parent 1c7052810a
commit bc54564d64
16 changed files with 365 additions and 17 deletions

View File

@@ -0,0 +1,13 @@
<script lang="ts">
import { getFormContext } from './FormProviderCore.svelte';
import CheckboxField from './CheckboxField.svelte';
export let name;
const { values, setFieldValue } = getFormContext();
function handleChange(e) {
setFieldValue(name, e.target['checked']);
}
</script>
<CheckboxField {...$$restProps} checked={$values[name]} on:change={handleChange} />