Skip to content
Discussion options

You must be logged in to vote

This can be done via dv.view().

Example from @SlRvb: https://discord.com/channels/686053708261228577/875721010144477204/994980905934397481

const note = dv.current()

dv.span(`
> [!infobox]+ 
> # ${note.Name}
> 
> |  |  |
> | --- | --- |
> | **Age** | ${note.Age} |
> | **Class** | ${note.Class} |
> | **Level** | ${note.Level} |
> | **Race** | ${note.Race} |
`)

And what that note would look like:

---
Name: Test Name
Age: Test Age
Class: Fighter
Level: 2 
Race: Aasimar
---


```dataviewjs
    dv.view("Path/to/your/view/js/file.js")
\```

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@foenixp
Comment options

@AB1908
Comment options

@foenixp
Comment options

Answer selected by AB1908
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants