Skip to content

Commit f3160a3

Browse files
committed
chore: add dataviewjs example
1 parent 028e803 commit f3160a3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test-vault/example read tables.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,16 @@
22
```dataview
33
TABLE file.tables WHERE length(file.tables) > 0
44
```
5+
6+
```dataviewjs
7+
8+
const tables = dv.pages('"tables"').file.tables
9+
10+
// show table for the last 5 days
11+
for (let table of tables) {
12+
dv.table(
13+
table.headers,
14+
table.rows
15+
)
16+
}
17+
```

0 commit comments

Comments
 (0)