-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added NumberQuestionInputEditor to render on demoFormEditor
- Loading branch information
1 parent
e12a528
commit 1159116
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<script lang="ts"> | ||
import type { NumberQuestion } from '$lib/form'; | ||
import BaseEditor from '../base/base_editor.svelte'; | ||
import NumberQuestionInput from './number_question_input.svelte'; | ||
export var data = $$props as NumberQuestion; | ||
</script> | ||
|
||
<BaseEditor bind:data> | ||
<input type="number" bind:value={data.min} /> | ||
<input type="number" bind:value={data.max} /> | ||
<input type="number" bind:value={data.step} /> | ||
<input type="number" bind:value={data.value} /> | ||
<input type="text" bind:value={data.placeholder} /> | ||
<details> | ||
<summary>Sample</summary> | ||
<NumberQuestionInput bind:data /> | ||
</details> | ||
</BaseEditor> |