This commit is contained in:
Jan Prochazka
2021-03-04 15:20:08 +01:00
parent 7acea0f4ac
commit ef5bfb5a89
23 changed files with 368 additions and 72 deletions

View File

@@ -1,5 +1,15 @@
<script>
import FormStyledButton from '../widgets/FormStyledButton.svelte';
import { getFormContext } from './FormProviderCore.svelte';
import { createEventDispatcher } from 'svelte';
const dispatch = createEventDispatcher();
const { values } = getFormContext();
function handleClick() {
dispatch('click', $values);
}
</script>
<FormStyledButton type="button" on:click {...$$props} />
<FormStyledButton type="button" on:click={handleClick} {...$$props} />