Skip to content
Discussion options

You must be logged in to vote

Yes, I wanted to create a custom view on top. It turns out it's pretty easy. Inside a dataviewjs block, I've access to this.container from where I can create an element.

Here is an example if someone needs it:

```dataviewjs
const pages = dv.pages().limit(3)

for (const page of pages) {
  this.container.createEl('div', {text: page.file.name})
}
```

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@blacksmithgu
Comment options

@renarl
Comment options

@blacksmithgu
Comment options

@renarl
Comment options

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