Skip to content

Commit

Permalink
chore: add dataviewjs example
Browse files Browse the repository at this point in the history
  • Loading branch information
leangseu committed Mar 4, 2024
1 parent 028e803 commit f3160a3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test-vault/example read tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,16 @@
```dataview
TABLE file.tables WHERE length(file.tables) > 0
```

```dataviewjs
const tables = dv.pages('"tables"').file.tables
// show table for the last 5 days
for (let table of tables) {
dv.table(
table.headers,
table.rows
)
}
```

0 comments on commit f3160a3

Please sign in to comment.