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.
chore: complete the dataview feature
- Loading branch information
1 parent
22b8949
commit 18669e3
Showing
6 changed files
with
62 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
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,32 @@ | ||
<script lang="ts"> | ||
import FormRow from "./FormRow.svelte"; | ||
export let index: number; | ||
export let value: string; | ||
$: id = `dataview_${index}`; | ||
</script> | ||
|
||
<FormRow label="Dataview Query" {id}> | ||
<span class="modal-form-hint"> | ||
This is a <a | ||
href="https://blacksmithgu.github.io/obsidian-dataview/api/intro/" | ||
>Dataview</a | ||
> | ||
query that will be used to populate the input suggestions. You should provide | ||
a query that returns a list of strings, for example: | ||
<pre class="language-js"><code | ||
>dv.pages('#tag').map(p => p.file.name)</code | ||
></pre> | ||
</span> | ||
<textarea | ||
{id} | ||
bind:value | ||
name="dataview_query" | ||
class="form-control" | ||
rows="3" | ||
placeholder="dv.pages('#tag').map(p => p.file.name)" | ||
/> | ||
</FormRow> | ||
|
||
<style> | ||
</style> |
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