mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 04:26:01 +00:00
set filter modal
This commit is contained in:
13
packages/web/src/forms/FormCheckboxFieldRaw.svelte
Normal file
13
packages/web/src/forms/FormCheckboxFieldRaw.svelte
Normal 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} />
|
||||
Reference in New Issue
Block a user