generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37f5236
commit 879aba9
Showing
5 changed files
with
36 additions
and
15 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
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 @@ | ||
export * as input from "./InputDefinitionSchema"; |
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,16 @@ | ||
<script lang="ts"> | ||
import { App } from "obsidian"; | ||
import { input as I } from "src/core"; | ||
import { FieldValue } from "src/store/formStore"; | ||
import { Readable, Writable } from "svelte/store"; | ||
import MultiSelect from "../MultiSelect.svelte"; | ||
import { MultiSelectTags } from "../MultiSelectModel"; | ||
export let input: I.inputTag; | ||
export let app: App; | ||
export let errors: Readable<string[]>; | ||
export let value: Writable<FieldValue>; | ||
$: model = MultiSelectTags(input, app, value as Writable<string[]>); | ||
$: values = value as Writable<string[]>; | ||
</script> | ||
|
||
<MultiSelect {values} {errors} model={Promise.resolve(model)} /> |