dv.el not rendering in table row
See original GitHub issueWhat happened?
up to 0.4.26 (at least) it was possible to render dv.el in a table row :
dv.table(
["name", "html"],
dv.pages("#someTag")
.map(p => [p.file.link, dv.el('div', "ABC")])
)
was render something like
name | html |
---|---|
A | ABC |
B | ABC |
now that i’ve upgraded to 0.5.34 the same code renders something like
ABC ABC
name | html |
---|---|
A | <HTMLDivElement> |
B | <HTMLDivElement> |
DQL
dv.table(
["name", "html"],
dv.pages("#someTag")
.map(p => [p.file.link, dv.el('div', "ABC")])
)
JS
No response
Dataview Version
0.5.34
Obsidian Version
0.14.15
OS
MacOS
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Vue js simple component for table not working - Stack Overflow
In your case, it caused your table to be rendered 'above' the header. Actually, browser has created two tables in this case: one...
Read more >Table | Components - BootstrapVue
Avoid manipulating record data in place, as changes to the underlying items data will cause either the row or entire table to be...
Read more ><table>: The Table element - HTML - MDN Web Docs - Mozilla
This attribute defines the space between the content of a cell and its border, displayed or not. If the cellpadding's length is defined...
Read more >columns.render - DataTables
columns.render. Since: DataTables 1.10. Render (process) the data for use in the table. ... The full data source for the row (not based...
Read more >DataviewJS Snippet Showcase - Obsidian Forum
IMG_20220107_230609.jpg|200]]") dv.el("div", dv. ... issue with the Obsidian Plugin API not rendering embeddings… could this be the issue?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed in 0.5.35.
While nowhere near ideal, this seems to resolve the issue for me:
where
containerEl
is your HTML element.